Package org.eclipse.jgit.api
Class ReflogCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<Collection<ReflogEntry>>
-
- org.eclipse.jgit.api.ReflogCommand
-
- All Implemented Interfaces:
Callable<Collection<ReflogEntry>>
public class ReflogCommand extends GitCommand<Collection<ReflogEntry>>
The reflog command- See Also:
- Git documentation about reflog
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Constructor Description ReflogCommand(Repository repo)
Constructor for ReflogCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ReflogEntry>
call()
ReflogCommand
setRef(String ref)
The ref used for the reflog operation.-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
ReflogCommand
public ReflogCommand(Repository repo)
Constructor for ReflogCommand.- Parameters:
repo
- theRepository
-
-
Method Detail
-
setRef
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
- the name of theRef
to log- Returns:
this
-
call
public Collection<ReflogEntry> call() throws GitAPIException, InvalidRefNameException
Execute the command
Run the reflog command
- Specified by:
call
in interfaceCallable<Collection<ReflogEntry>>
- Specified by:
call
in classGitCommand<Collection<ReflogEntry>>
- Throws:
GitAPIException
InvalidRefNameException
-
-