Package org.eclipse.jgit.lfs
Class InstallBuiltinLfsCommand
- java.lang.Object
-
- org.eclipse.jgit.lfs.InstallBuiltinLfsCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Void>,LfsFactory.LfsInstallCommand
public class InstallBuiltinLfsCommand extends java.lang.Object implements LfsFactory.LfsInstallCommand
Installs all required LFS properties for the current user, analogous to 'git lfs install', but defaulting to using JGit builtin hooks.- Since:
- 4.11
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]ARGS_LOCALprivate static java.lang.String[]ARGS_USERprivate Repositoryrepository
-
Constructor Summary
Constructors Constructor Description InstallBuiltinLfsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidcall()LfsFactory.LfsInstallCommandsetRepository(Repository repo)Set the repository to install LFS for
-
-
-
Field Detail
-
ARGS_USER
private static final java.lang.String[] ARGS_USER
-
ARGS_LOCAL
private static final java.lang.String[] ARGS_LOCAL
-
repository
private Repository repository
-
-
Method Detail
-
call
public java.lang.Void call() throws java.io.IOException, InvalidConfigurationException, java.lang.InterruptedException- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Void>- Throws:
java.io.IOException- if an I/O error occurs while accessing a git config or executinggit lfs installin an external processInvalidConfigurationException- if a git configuration is invalidjava.lang.InterruptedException- if the current thread is interrupted while waiting for thegit lfs installexecuted in an external process
-
setRepository
public LfsFactory.LfsInstallCommand setRepository(Repository repo)
Set the repository to install LFS for- Specified by:
setRepositoryin interfaceLfsFactory.LfsInstallCommand- Parameters:
repo- the repository to install LFS into locally instead of the user configuration- Returns:
- this command
-
-