public class ReflogCommand extends GitCommand<java.util.Collection<ReflogEntry>>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ref |
repo
Constructor and Description |
---|
ReflogCommand(Repository repo)
Constructor for ReflogCommand.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ReflogEntry> |
call() |
ReflogCommand |
setRef(java.lang.String ref)
The ref used for the reflog operation.
|
checkCallable, getRepository, setCallable
public ReflogCommand(Repository repo)
repo
- the Repository
public ReflogCommand setRef(java.lang.String ref)
ref
- the name of the Ref
to logthis
public java.util.Collection<ReflogEntry> call() throws GitAPIException, InvalidRefNameException
Execute the command
Run the reflog command
call
in interface java.util.concurrent.Callable<java.util.Collection<ReflogEntry>>
call
in class GitCommand<java.util.Collection<ReflogEntry>>
GitAPIException
InvalidRefNameException