From 9f661377161c9abeea2354411a1349a5806b281b Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Mon, 12 Dec 2011 09:21:15 -0800 Subject: [PATCH] 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 --- org.eclipse.jgit/src/org/eclipse/jgit/api/StatusCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 8c17b0afb..7d7eb1871 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 { * 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; } }