Top Description Fields Constructors Methods
org.eclipse.jgit.lfs

public Class InstallBuiltinLfsCommand

extends Object
implements LfsInstallCommand
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.util.LfsFactory.LfsInstallCommand, java.util.concurrent.Callable
Imports
java.io.IOException, org.eclipse.jgit.api.errors.InvalidConfigurationException, org.eclipse.jgit.errors.ConfigInvalidException, org.eclipse.jgit.lib.ConfigConstants, .Repository, .StoredConfig, org.eclipse.jgit.util.FS, .LfsFactory.LfsInstallCommand, .SystemReader

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

Modifier and TypeField and Description
private static final String[]
private static final String[]
private Repository

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Void
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

public LfsFactory.LfsInstallCommand

Returns:

this command
setRepository
(Repository
the repository to install LFS into locally instead of the user configuration
repo
)

Implements org.eclipse.jgit.util.LfsFactory.LfsInstallCommand.setRepository.

Set the repository to install LFS for

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARGS_LOCALback to summary
private static final String[] ARGS_LOCAL
ARGS_USERback to summary
private static final String[] ARGS_USER
repositoryback to summary
private Repository repository

Constructor Detail

InstallBuiltinLfsCommandback to summary
public InstallBuiltinLfsCommand()

Method Detail

callback to summary
public Void call() throws IOException, InvalidConfigurationException, InterruptedException

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Returns:Void

computed result

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs while accessing a git config or executing git lfs install in an external process
InvalidConfigurationException:
if a git configuration is invalid
InterruptedException:
if the current thread is interrupted while waiting for the git lfs install executed in an external process
setRepositoryback to summary
public LfsFactory.LfsInstallCommand setRepository(Repository repo)

Implements org.eclipse.jgit.util.LfsFactory.LfsInstallCommand.setRepository.

Set the repository to install LFS for

Parameters
repo:Repository

the repository to install LFS into locally instead of the user configuration

Returns:LfsFactory.LfsInstallCommand

this command

Annotations
@Override