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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflogCommand
public ReflogCommand(Repository repo)
- Parameters:
repo
-
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
-
- Returns:
this
call
public Collection<ReflogEntry> call()
throws Exception
- Throws:
Exception
Copyright © 2011. All Rights Reserved.