diff options
Diffstat (limited to 'org.eclipse.jgit.lfs')
-rw-r--r-- | org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/BuiltinLFS.java | 8 | ||||
-rw-r--r-- | org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallBuiltinLfsCommand.java (renamed from org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java) | 7 |
2 files changed, 11 insertions, 4 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/BuiltinLFS.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/BuiltinLFS.java index d65e4e9993..415caa9859 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/BuiltinLFS.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/BuiltinLFS.java @@ -112,7 +112,8 @@ public class BuiltinLFS extends LfsFactory { * the repository * @return whether LFS is requested for the given repo. */ - private boolean isEnabled(Repository db) { + @Override + public boolean isEnabled(Repository db) { if (db == null) { return false; } @@ -138,4 +139,9 @@ public class BuiltinLFS extends LfsFactory { .equals(attribute.getValue()); } + @Override + public LfsInstallCommand getInstallCommand() { + return new InstallBuiltinLfsCommand(); + } + } diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallBuiltinLfsCommand.java index b204d0c156..028b19b2ab 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallLfsCommand.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/InstallBuiltinLfsCommand.java @@ -44,7 +44,6 @@ package org.eclipse.jgit.lfs; import java.io.IOException; import java.text.MessageFormat; -import java.util.concurrent.Callable; import org.eclipse.jgit.errors.ConfigInvalidException; import org.eclipse.jgit.lfs.internal.LfsText; @@ -53,6 +52,7 @@ import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.lib.StoredConfig; import org.eclipse.jgit.storage.file.FileBasedConfig; import org.eclipse.jgit.util.FS; +import org.eclipse.jgit.util.LfsFactory.LfsInstallCommand; import org.eclipse.jgit.util.SystemReader; /** @@ -61,7 +61,7 @@ import org.eclipse.jgit.util.SystemReader; * * @since 4.11 */ -public class InstallLfsCommand implements Callable<Void>{ +public class InstallBuiltinLfsCommand implements LfsInstallCommand { private static final String[] ARGS_USER = new String[] { "lfs", "install" }; //$NON-NLS-1$//$NON-NLS-2$ @@ -110,7 +110,8 @@ public class InstallLfsCommand implements Callable<Void>{ * configuration * @return this command */ - public InstallLfsCommand setRepository(Repository repo) { + @Override + public LfsInstallCommand setRepository(Repository repo) { this.repository = repo; return this; } |