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

public Class PackRefsCommand

extends GitCommand<String>
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.api.errors.GitAPIException, .JGitInternalException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.NullProgressMonitor, .ProgressMonitor, .Repository

Optimize storage of references.
Since
7.1

Field Summary

Modifier and TypeField and Description
private boolean
private ProgressMonitor
Inherited from org.eclipse.jgit.api.GitCommand:
repo

Constructor Summary

AccessConstructor and Description
public
PackRefsCommand(Repository
the repository this command will be used on
repo
)

Creates a new PackRefsCommand instance with default values.

Method Summary

Modifier and TypeMethod and Description
public String
call()

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

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

public boolean

Returns:

whether to pack all the references
isAll
()

Whether to pack all the references

public PackRefsCommand

Returns:

this instance
setAll
(boolean
if true all the loose refs will be packed
all
)

Specify whether to pack all the references.

public PackRefsCommand

Returns:

this instance
setProgressMonitor
(ProgressMonitor
a progress monitor
monitor
)

Set progress monitor

Inherited from org.eclipse.jgit.api.GitCommand:
checkCallablegetRepositorysetCallable

Field Detail

allback to summary
private boolean all
monitorback to summary
private ProgressMonitor monitor

Constructor Detail

PackRefsCommandback to summary
public PackRefsCommand(Repository repo)

Creates a new PackRefsCommand instance with default values.

Parameters
repo:Repository

the repository this command will be used on

Method Detail

callback to summary
public String call() throws GitAPIException

Implements abstract org.eclipse.jgit.api.GitCommand.call.

Implements java.util.concurrent.Callable.call.

Doc from org.eclipse.jgit.api.GitCommand.call.

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

Execute the command

Returns:String

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

computed result

Annotations
@Override
isAllback to summary
public boolean isAll()

Whether to pack all the references

Returns:boolean

whether to pack all the references

setAllback to summary
public PackRefsCommand setAll(boolean all)

Specify whether to pack all the references.

Parameters
all:boolean

if true all the loose refs will be packed

Returns:PackRefsCommand

this instance

setProgressMonitorback to summary
public PackRefsCommand setProgressMonitor(ProgressMonitor monitor)

Set progress monitor

Parameters
monitor:ProgressMonitor

a progress monitor

Returns:PackRefsCommand

this instance