Package org.eclipse.jgit.lfs
Class InstallBuiltinLfsCommand
java.lang.Object
org.eclipse.jgit.lfs.InstallBuiltinLfsCommand
- All Implemented Interfaces:
Callable<Void>
,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
FieldsModifier and TypeFieldDescriptionprivate static final String[]
private static final String[]
private Repository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()
setRepository
(Repository repo) Set the repository to install LFS for
-
Field Details
-
ARGS_USER
-
ARGS_LOCAL
-
repository
-
-
Constructor Details
-
InstallBuiltinLfsCommand
public InstallBuiltinLfsCommand()
-
-
Method Details
-
call
- Specified by:
call
in interfaceCallable<Void>
- Throws:
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 invalidInterruptedException
- if the current thread is interrupted while waiting for thegit lfs install
executed in an external process
-
setRepository
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
-