Package org.eclipse.jgit.api
Class ReflogCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<java.util.Collection<ReflogEntry>>
-
- org.eclipse.jgit.api.ReflogCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.util.Collection<ReflogEntry>>
public class ReflogCommand extends GitCommand<java.util.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ReflogEntry>
call()
Run the reflog commandReflogCommand
setRef(java.lang.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)
- Parameters:
repo
-
-
-
Method Detail
-
setRef
public ReflogCommand setRef(java.lang.String ref)
The ref used for the reflog operation. If no ref is set, the default value of HEAD will be used.- Parameters:
ref
-- Returns:
this
-
call
public java.util.Collection<ReflogEntry> call() throws GitAPIException, InvalidRefNameException
Run the reflog command- Specified by:
call
in interfacejava.util.concurrent.Callable<java.util.Collection<ReflogEntry>>
- Specified by:
call
in classGitCommand<java.util.Collection<ReflogEntry>>
- Returns:
- T a result. Each command has its own return type
- Throws:
GitAPIException
InvalidRefNameException
-
-