]> source.dussan.org Git - jgit.git/commitdiff
StatusCommand#setWorkingTreeIt should return 'this' 91/4791/2
authorTomasz Zarna <Tomasz.Zarna@pl.ibm.com>
Mon, 12 Dec 2011 17:21:15 +0000 (09:21 -0800)
committerKevin Sawicki <kevin@github.com>
Mon, 12 Dec 2011 17:21:15 +0000 (09:21 -0800)
All setters for JGit API commands return the command instance, follow
the builder pattern.

Change-Id: Id2bbc3f1300bb179887c4d2d6dd72925bde55f24
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java

index 8c17b0afb827d1a623422f376ad10c00a765039b..7d7eb1871faec6eb2742c3dca2dc3a26f5f6a37b 100644 (file)
@@ -95,8 +95,11 @@ public class StatusCommand extends GitCommand<Status> {
         * method is not called a standard {@link FileTreeIterator} is used.
         *
         * @param workingTreeIt
+        *            a working tree iterator
+        * @return {@code this}
         */
-       public void setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {
+       public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {
                this.workingTreeIt = workingTreeIt;
+               return this;
        }
 }