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())
| Modifier and Type | Field and Description |
|---|---|
| private SubmoduleWalk. | |
| private List | |
| private ProgressMonitor | |
| private WorkingTreeIterator |
| Access | Constructor and Description |
|---|---|
| protected | StatusCommand(Repository
a repo)org. object.Constructor for StatusCommand. |
| Modifier and Type | Method and Description |
|---|---|
| public StatusCommand | |
| public Status | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| public List | Returns: the paths for which the status is shown ornull if
the complete status for the whole repo is shown.Returns the paths filtering this status. |
| public StatusCommand | Returns: thisWhether to ignore submodules |
| public StatusCommand | Returns: thisa progressMonitor)org. object.To set the |
| public StatusCommand | Returns: thisa working tree iterator workingTreeIt)To set the |
| ignoreSubmoduleMode | back to summary |
|---|---|
| private SubmoduleWalk. | |
| paths | back to summary |
|---|---|
| private List<String> paths | |
| progressMonitor | back to summary |
|---|---|
| private ProgressMonitor progressMonitor | |
| workingTreeIt | back to summary |
|---|---|
| private WorkingTreeIterator workingTreeIt | |
| StatusCommand | back to summary |
|---|---|
| protected StatusCommand(Repository repo) Constructor for StatusCommand.
| |
| addPath | back to summary |
|---|---|
| public StatusCommand addPath(String path) Show only the status of files which match the given paths. The path must either name a file or a directory exactly. All paths are always relative to the repository root. If a directory is specified all files recursively underneath that directory are matched. If this method is called multiple times then the status of those files is reported which match at least one of the given paths. Note that regex expressions or wildcards are not supported.
| |
| call | back to summary |
|---|---|
| public Status call() throws GitAPIException, NoWorkTreeException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
Executes the
| |
| getPaths | back to summary |
|---|---|
| public List Returns the paths filtering this status. | |
| setIgnoreSubmodules | back to summary |
|---|---|
| public StatusCommand setIgnoreSubmodules(SubmoduleWalk. Whether to ignore submodules
| |
| setProgressMonitor | back to summary |
|---|---|
| public StatusCommand setProgressMonitor(ProgressMonitor progressMonitor) To set the
| |
| setWorkingTreeIt | back to summary |
|---|---|
| public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) To set the
| |