public class ReflogCommand extends GitCommand<Collection<ReflogEntry>>
repo
Constructor and Description |
---|
ReflogCommand(Repository repo)
Constructor for ReflogCommand.
|
Modifier and Type | Method and Description |
---|---|
Collection<ReflogEntry> |
call() |
ReflogCommand |
setRef(String ref)
The ref used for the reflog operation.
|
checkCallable, getRepository, setCallable
public ReflogCommand(Repository repo)
repo
- the Repository
public ReflogCommand setRef(String ref)
ref
- the name of the Ref
to logthis
public Collection<ReflogEntry> call() throws GitAPIException, InvalidRefNameException
Execute the command
Run the reflog command
call
in interface Callable<Collection<ReflogEntry>>
call
in class GitCommand<Collection<ReflogEntry>>
GitAPIException
InvalidRefNameException
Copyright © 2020 Eclipse JGit Project. All rights reserved.