public class Status extends Object
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()
Constructor and Description |
---|
Status(IndexDiff diff)
Constructor for Status.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAdded()
Get files added to the index
|
Set<String> |
getChanged()
Get changed files from HEAD to index
|
Set<String> |
getConflicting()
Get conflicting files
|
Map<String,IndexDiff.StageState> |
getConflictingStageState()
Get StageState of conflicting files
|
Set<String> |
getIgnoredNotInIndex()
Get ignored files which are not in the index
|
Set<String> |
getMissing()
Get missing files
|
Set<String> |
getModified()
Get modified files relative to the index
|
Set<String> |
getRemoved()
Get removed files
|
Set<String> |
getUncommittedChanges()
Get uncommitted changes, i.e.
|
Set<String> |
getUntracked()
Get untracked files
|
Set<String> |
getUntrackedFolders()
Get untracked folders
|
boolean |
hasUncommittedChanges()
Whether there are uncommitted changes
|
boolean |
isClean()
Whether the status is clean
|
public boolean isClean()
true
if no differences exist between the working-tree,
the index, and the current HEAD, false
if differences do
existpublic boolean hasUncommittedChanges()
true
if any tracked file is changedpublic Set<String> getAdded()
git add ...
on a newly created file)public Set<String> getChanged()
public Set<String> getRemoved()
public Set<String> getMissing()
public Set<String> getModified()
public Set<String> getUntracked()
public Set<String> getUntrackedFolders()
public Set<String> getConflicting()
public Map<String,IndexDiff.StageState> getConflictingStageState()
IndexDiff.StageState
.public Set<String> getIgnoredNotInIndex()
Copyright © 2017 Eclipse JGit Project. All rights reserved.