summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2018-03-04 21:26:33 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2018-03-04 23:41:31 +0100
commit28167853c120540db97a5c092646d0ed3316e1e8 (patch)
treedf1eaf463cfd0b7a0fbe7c2761d3bde9ff0557f3 /org.eclipse.jgit.lfs/src/org/eclipse/jgit
parent0e188c592086e4bf8d5c077848ce6029db5ba14f (diff)
downloadjgit-28167853c120540db97a5c092646d0ed3316e1e8.tar.gz
jgit-28167853c120540db97a5c092646d0ed3316e1e8.zip
Return this from InstallLfsCommand.setRepository() to allow chaining
Change-Id: I105f1f62f2dcdb20a196361190e9c9fe368e8613 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs/src/org/eclipse/jgit')
-rw-r--r--org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java
index 19c7fe430a..f9e863c0fc 100644
--- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java
+++ b/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 {