summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTomasz Zarna2011-12-12 12:21:15 (EST)
committer Kevin Sawicki2011-12-12 12:21:15 (EST)
commit9f661377161c9abeea2354411a1349a5806b281b (patch)
tree65a188b8f4c3417b09a310d745f5d8bf241f78b8
parent7fded4d14f999452165c0ea744b2acf0c04136d3 (diff)
downloadjgit-9f661377161c9abeea2354411a1349a5806b281b.zip
jgit-9f661377161c9abeea2354411a1349a5806b281b.tar.gz
jgit-9f661377161c9abeea2354411a1349a5806b281b.tar.bz2
StatusCommand#setWorkingTreeIt should return 'this'refs/changes/91/4791/2
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 8c17b0a..7d7eb18 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;
}
}