diff options
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java | 8 |
1 files changed, 6 insertions, 2 deletions
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<RevCommit> { * 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<RevCommit> { * 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, |