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

public Class ReflogCommand

extends GitCommand<Collection<ReflogEntry>>
Class Inheritance
Imports
java.io.IOException, java.text.MessageFormat, java.util.Collection, org.eclipse.jgit.api.errors.GitAPIException, .InvalidRefNameException, .RefNotFoundException, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Constants, .ReflogEntry, .ReflogReader, .Repository

The reflog command
See Also
Git documentation about reflog

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
ReflogCommand(Repository repo)

Constructor for ReflogCommand.

Method Summary

Modifier and TypeMethod and Description
public Collection<ReflogEntry>
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 ReflogCommand

Returns:

this
setRef
(String
the name of the Ref to log
ref
)

The ref used for the reflog operation.

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

Field Detail

refback to summary
private String ref

Constructor Detail

ReflogCommandback to summary
public ReflogCommand(Repository repo)

Constructor for ReflogCommand.

Parameters
repo:Repository

the org.eclipse.jgit.lib.Repository

Method Detail

callback to summary
public Collection<ReflogEntry> call() throws GitAPIException, InvalidRefNameException

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

Run the reflog command

Returns:Collection<ReflogEntry>

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

computed result

Annotations
@Override
setRefback to summary
public ReflogCommand setRef(String ref)

The ref used for the reflog operation. If no ref is set, the default value of HEAD will be used.

Parameters
ref:String

the name of the Ref to log

Returns:ReflogCommand

this