Added getCachedPathStatuses()

This commit is contained in:
joshaber
2015-12-29 17:10:09 -05:00
parent f413801836
commit 34ab798362

View File

@@ -492,6 +492,14 @@ export default class GitRepositoryAsync {
.then(relativePath => this.pathStatusCache[relativePath])
}
// Public: Get the cached statuses for the repository.
//
// Returns an {Object} of {Number} statuses, keyed by {String} working
// directory-relative file names.
getCachedPathStatuses () {
return this.pathStatusCache
}
// Public: Returns true if the given status indicates modification.
//
// * `statusBit` A {Number} representing the status.