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>
This commit is contained in:
Tomasz Zarna 2011-12-12 09:21:15 -08:00 committed by Kevin Sawicki
parent 7fded4d14f
commit 9f66137716
1 changed files with 4 additions and 1 deletions

View File

@ -95,8 +95,11 @@ public Status call() throws IOException, NoWorkTreeException {
* 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;
}
}