Package org.eclipse.jgit.api
Class ReflogCommand
- All Implemented Interfaces:
Callable<Collection<ReflogEntry>>
The reflog command
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
ref
-
-
Constructor Details
-
ReflogCommand
Constructor for ReflogCommand.- Parameters:
repo
- theRepository
-
-
Method Details
-
setRef
The ref used for the reflog operation. If no ref is set, the default value of HEAD will be used.- Parameters:
ref
- the name of theRef
to log- Returns:
this
-
call
Execute the command
Run the reflog command
- Specified by:
call
in interfaceCallable<Collection<ReflogEntry>>
- Specified by:
call
in classGitCommand<Collection<ReflogEntry>>
- Throws:
GitAPIException
InvalidRefNameException
-