org.eclipse.jgit.api
Class StatusCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<Status>
org.eclipse.jgit.api.StatusCommand
- All Implemented Interfaces:
- Callable<Status>
public class StatusCommand
- extends GitCommand<Status>
A class used to execute a Status
command. It has setters for all
supported options and arguments of this command and a call()
method
to finally execute the command. Each instance of this class should only be
used for one invocation of the command (means: one call to call()
)
- See Also:
- Git documentation about Status
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatusCommand
protected StatusCommand(Repository repo)
- Parameters:
repo
-
call
public Status call()
throws GitAPIException,
NoWorkTreeException
- Executes the
Status
command with all the options and parameters
collected by the setter methods of this class. Each instance of this
class should only be used for one invocation of the command. Don't call
this method twice on an instance.
- Specified by:
call
in interface Callable<Status>
- Specified by:
call
in class GitCommand<Status>
- Returns:
- a
Status
object telling about each path where working
tree, index or HEAD differ from each other.
- Throws:
GitAPIException
- or subclass thereof when an error occurs
NoWorkTreeException
setWorkingTreeIt
public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt)
- To set the
WorkingTreeIterator
which should be used. If this
method is not called a standard FileTreeIterator
is used.
- Parameters:
workingTreeIt
- a working tree iterator
- Returns:
this
Copyright © 2012. All Rights Reserved.