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_LOCAL
private static java.lang.String[]
ARGS_USER
private Repository
repository
-
Constructor Summary
Constructors Constructor Description InstallBuiltinLfsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
call()
LfsFactory.LfsInstallCommand
setRepository(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:
call
in 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 install
in an external processInvalidConfigurationException
- if a git configuration is invalidjava.lang.InterruptedException
- if the current thread is interrupted while waiting for thegit lfs install
executed in an external process
-
setRepository
public LfsFactory.LfsInstallCommand setRepository(Repository repo)
Set the repository to install LFS for- Specified by:
setRepository
in interfaceLfsFactory.LfsInstallCommand
- Parameters:
repo
- the repository to install LFS into locally instead of the user configuration- Returns:
- this command
-
-