]> source.dussan.org Git - jgit.git/commitdiff
Enable call chaining on LsRemoteCommand methods 74/5974/1
authorDave Borowitz <dborowitz@google.com>
Tue, 20 Mar 2012 14:45:12 +0000 (07:45 -0700)
committerDave Borowitz <dborowitz@google.com>
Mon, 14 May 2012 18:52:48 +0000 (11:52 -0700)
Change-Id: I706332386415892d7a964b241442832ad79fa223

org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java

index 6bfd224de0ac63836d0d003e8847d2fe333f7b78..947b3f5929ec9503181200c4a804e343b248a4a4 100644 (file)
@@ -106,27 +106,33 @@ public class LsRemoteCommand extends
         * Include refs/heads in references results
         *
         * @param heads
+        * @return {@code this}
         */
-       public void setHeads(boolean heads) {
+       public LsRemoteCommand setHeads(boolean heads) {
                this.heads = heads;
+               return this;
        }
 
        /**
         * Include refs/tags in references results
         *
         * @param tags
+        * @return {@code this}
         */
-       public void setTags(boolean tags) {
+       public LsRemoteCommand setTags(boolean tags) {
                this.tags = tags;
+               return this;
        }
 
        /**
         * The full path of git-upload-pack on the remote host
         *
         * @param uploadPack
+        * @return {@code this}
         */
-       public void setUploadPack(String uploadPack) {
+       public LsRemoteCommand setUploadPack(String uploadPack) {
                this.uploadPack = uploadPack;
+               return this;
        }
 
        /**
@@ -193,4 +199,4 @@ public class LsRemoteCommand extends
                }
        }
 
-}
\ No newline at end of file
+}