getModified().
The same path can be returned by multiple getters. E.g. if a modification has
been added to the index and afterwards the corresponding working tree file is
again modified this path will be returned by getModified() and
getChanged()
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final IndexDiff | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: list of files added to the index, not in HEAD (e.g. what you get if you callgit add ... on a newly created file)Get files added to the index |
| public Set | Returns: list of files changed from HEAD to index (e.g. what you get if you modify an existing file and call 'git add ...' on it)Get changed files from HEAD to index |
| public Set | Returns: list of files that are in conflict. (e.g what you get if you modify file that was modified by someone else in the meantime)Get conflicting files |
| public Map | Returns: a map from conflicting path to itsorg..Get StageState of conflicting files |
| public Set | Returns: set of files and folders that are ignored and not in the index.Get ignored files which are not in the index |
| public Set | Returns: list of files in index, but not filesystem (e.g. what you get if you call 'rm ...' on a existing file)Get missing files |
| public Set | Returns: list of files modified on disk relative to the index (e.g. what you get if you modify an existing file without adding it to the index)Get modified files relative to the index |
| public Set | Returns: list of files removed from index, but in HEAD (e.g. what you get if you call 'git rm ...' on a existing file)Get removed files |
| public Set | Returns: set of files and folders that are known to the repo and changed either in the index or in the working tree.Get uncommitted changes, i.e. all files changed in the index or working tree |
| public Set | Returns: list of files that are not ignored, and not in the index. (e.g. what you get if you create a new file without adding it to the index)Get untracked files |
| public Set | Returns: set of directories that are not ignored, and not in the index.Get untracked folders |
| public boolean | Returns: true if any tracked file is changedWhether there are uncommitted changes |
| public boolean | Returns: true if no differences exist between the working-tree,
the index, and the current HEAD, false if differences do
existWhether the status is clean |
| clean | back to summary |
|---|---|
| private final boolean clean | |
| diff | back to summary |
|---|---|
| private final IndexDiff diff | |
| hasUncommittedChanges | back to summary |
|---|---|
| private final boolean hasUncommittedChanges | |
| Status | back to summary |
|---|---|
| public Status(IndexDiff diff) Constructor for Status.
| |
| getAdded | back to summary |
|---|---|
| public Set Get files added to the index | |
| getChanged | back to summary |
|---|---|
| public Set Get changed files from HEAD to index | |
| getConflicting | back to summary |
|---|---|
| public Set Get conflicting files | |
| getConflictingStageState | back to summary |
|---|---|
| public Map Get StageState of conflicting files
| |
| getIgnoredNotInIndex | back to summary |
|---|---|
| public Set Get ignored files which are not in the index | |
| getMissing | back to summary |
|---|---|
| public Set Get missing files | |
| getModified | back to summary |
|---|---|
| public Set Get modified files relative to the index | |
| getRemoved | back to summary |
|---|---|
| public Set Get removed files | |
| getUncommittedChanges | back to summary |
|---|---|
| public Set Get uncommitted changes, i.e. all files changed in the index or working tree | |
| getUntracked | back to summary |
|---|---|
| public Set Get untracked files | |
| getUntrackedFolders | back to summary |
|---|---|
| public Set Get untracked folders | |
| hasUncommittedChanges | back to summary |
|---|---|
| public boolean hasUncommittedChanges() Whether there are uncommitted changes
| |
| isClean | back to summary |
|---|---|
| public boolean isClean() Whether the status is clean
| |