Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-12-12 17:21:15 +0000
committerKevin Sawicki2011-12-12 17:21:15 +0000
commit9f661377161c9abeea2354411a1349a5806b281b (patch)
tree65a188b8f4c3417b09a310d745f5d8bf241f78b8
parent7fded4d14f999452165c0ea744b2acf0c04136d3 (diff)
downloadjgit-9f661377161c9abeea2354411a1349a5806b281b.tar.gz
jgit-9f661377161c9abeea2354411a1349a5806b281b.tar.xz
jgit-9f661377161c9abeea2354411a1349a5806b281b.zip
StatusCommand#setWorkingTreeIt should return 'this'
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java
index 8c17b0afb8..7d7eb1871f 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java
@@ -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;
}
}

Back to the top