]> source.dussan.org Git - jgit.git/commitdiff
Return command from StashCreateCommand setters 91/5191/2
authorKevin Sawicki <kevin@github.com>
Wed, 29 Feb 2012 18:13:36 +0000 (10:13 -0800)
committerChris Aniszczyk <zx@twitter.com>
Tue, 6 Mar 2012 04:53:59 +0000 (20:53 -0800)
Previously were void which made them inconsistent with
the fluid setter pattern used in other commands.

Change-Id: Idb81dfc7bb097306f0c5d6e34f91a2bbab501668
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/StashCreateCommand.java

index 8ead2b57fa9969deaa830771ef716c32f4db62a1..e26ae879fd0dab81dd31be5c43cdb92e3b79c2ec 100644 (file)
@@ -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,