Browse Source

Return this from InstallLfsCommand.setRepository() to allow chaining

Change-Id: I105f1f62f2dcdb20a196361190e9c9fe368e8613
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.11
Matthias Sohn 7 years ago
parent
commit
28167853c1
  1. 6
      org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java

6
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java

@ -102,12 +102,16 @@ public class InstallLfsCommand implements Callable<Void>{
}
/**
* Set the repository to install LFS for
*
* @param repo
* the repository to install LFS into locally instead of the user
* configuration
* @return this command
*/
public void setRepository(Repository repo) {
public InstallLfsCommand setRepository(Repository repo) {
this.repository = repo;
return this;
}
private StoredConfig loadUserConfig() throws IOException {

Loading…
Cancel
Save