Provide file mode of paths in index from IndexDiff
Change-Id: I1d543e2f721987114cc1e1cb0848c234470df794 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
d57c00e036
commit
69451b8302
|
@ -438,4 +438,15 @@ public Set<String> getUntrackedFolders() {
|
||||||
return ((indexDiffFilter == null) ? Collections.<String> emptySet()
|
return ((indexDiffFilter == null) ? Collections.<String> emptySet()
|
||||||
: new HashSet<String>(indexDiffFilter.getUntrackedFolders()));
|
: new HashSet<String>(indexDiffFilter.getUntrackedFolders()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the file mode of the given path in the index
|
||||||
|
*
|
||||||
|
* @param path
|
||||||
|
* @return file mode
|
||||||
|
*/
|
||||||
|
public FileMode getIndexMode(final String path) {
|
||||||
|
final DirCacheEntry entry = dirCache.getEntry(path);
|
||||||
|
return entry != null ? entry.getFileMode() : FileMode.MISSING;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue