Optimize storage of references.
- Since:
- 7.1
-
Field Summary
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo -
Constructor Summary
ConstructorsConstructorDescriptionPackRefsCommand(Repository repo) Creates a newPackRefsCommandinstance with default values. -
Method Summary
Modifier and TypeMethodDescriptioncall()booleanisAll()Whether to pack all the referencessetAll(boolean all) Specify whether to pack all the references.setProgressMonitor(ProgressMonitor monitor) Set progress monitorMethods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Constructor Details
-
PackRefsCommand
Creates a newPackRefsCommandinstance with default values.- Parameters:
repo- the repository this command will be used on
-
-
Method Details
-
setProgressMonitor
Set progress monitor- Parameters:
monitor- a progress monitor- Returns:
- this instance
-
setAll
Specify whether to pack all the references.- Parameters:
all- iftrueall the loose refs will be packed- Returns:
- this instance
-
isAll
public boolean isAll()Whether to pack all the references- Returns:
- whether to pack all the references
-
call
Description copied from class:GitCommandExecute the command
- Specified by:
callin interfaceCallable<String>- Specified by:
callin classGitCommand<String>- Throws:
GitAPIException
-