From 8db5414dcf09e62154818b4d8da7d5be07098bb2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 29 Feb 2012 10:13:36 -0800 Subject: Return command from StashCreateCommand setters Previously were void which made them inconsistent with the fluid setter pattern used in other commands. Change-Id: Idb81dfc7bb097306f0c5d6e34f91a2bbab501668 Signed-off-by: Chris Aniszczyk --- org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'org.eclipse.jgit') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java index 8ead2b57fa..e26ae879fd 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java @@ -142,9 +142,11 @@ public class StashCreateCommand extends GitCommand { * Set the person to use as the author and committer in the commits made * * @param person + * @return {@code this} */ - public void setPerson(PersonIdent person) { + public StashCreateCommand setPerson(PersonIdent person) { this.person = person; + return this; } /** @@ -153,9 +155,11 @@ public class StashCreateCommand extends GitCommand { * This value defaults to {@link Constants#R_STASH} * * @param ref + * @return {@code this} */ - public void setRef(String ref) { + public StashCreateCommand setRef(String ref) { this.ref = ref; + return this; } private RevCommit parseCommit(final ObjectReader reader, -- cgit v1.2.3