public final class GitStatus extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GitStatus.Status
File's status, respectively the state of a file between two trees
(can be HEAD vs.
|
Modifier and Type | Method and Description |
---|---|
GitConflictDescriptor |
getConflictDescriptor() |
File |
getFile() |
long |
getIndexEntryModificationDate()
Returns the time in milliseconds of the last modification timestamp of
the index entry.
|
File |
getOldPath() |
String |
getRelativePath() |
GitStatus.Status |
getStatusHeadIndex() |
GitStatus.Status |
getStatusHeadWC() |
GitStatus.Status |
getStatusIndexWC() |
boolean |
isConflict()
States if the file is currently in conflict and needs to be resolved.
|
boolean |
isCopied() |
boolean |
isFolder() |
boolean |
isRenamed() |
boolean |
isTracked() |
public File getFile()
public String getRelativePath()
public GitStatus.Status getStatusHeadIndex()
public GitStatus.Status getStatusIndexWC()
public GitStatus.Status getStatusHeadWC()
public boolean isTracked()
true
if the file is tracked by Git,
meaning it has been already committed or added to the Indexpublic boolean isConflict()
getConflictDescriptor
methodGitClient.catIndexEntry(java.io.File, int, java.io.OutputStream, org.netbeans.libs.git.progress.ProgressMonitor)
. true
if the file is currently in conflict.public boolean isFolder()
true
if the file references a folder.public boolean isCopied()
true
if the file is tracked in the Index as copied.public boolean isRenamed()
true
if the file is tracked in the Index as renamed.public File getOldPath()
null
if the file is neither copied or renamed, the original file this
file has been copied or renamed from otherwise.public GitConflictDescriptor getConflictDescriptor()
null
if the file is not in conflict.public long getIndexEntryModificationDate()
-1
.