Package org.eclipse.jgit.lfs
Class InstallBuiltinLfsCommand
- java.lang.Object
-
- org.eclipse.jgit.lfs.InstallBuiltinLfsCommand
-
- All Implemented Interfaces:
Callable<Void>
,LfsFactory.LfsInstallCommand
public class InstallBuiltinLfsCommand extends 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
-
-
Constructor Summary
Constructors Constructor Description InstallBuiltinLfsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
call()
LfsFactory.LfsInstallCommand
setRepository(Repository repo)
Set the repository to install LFS for
-
-
-
Method Detail
-
call
public Void call() throws IOException, InvalidConfigurationException, InterruptedException
- 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
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
-
-