Set status to 0 if it is ignored

The statuses obtained via the background task do not include ignored
entries so don't put ignored entries into the cache when checking the
status individually.

This was causing the fuzzy finder to show ignored paths in the status
list view after an ignored file was saved.
This commit is contained in:
Kevin Sawicki
2014-05-01 14:19:42 -07:00
parent a7d1a68fb8
commit dd74280146

View File

@@ -135,6 +135,7 @@ class Git
relativePath = @relativize(path)
currentPathStatus = @statuses[relativePath] ? 0
pathStatus = repo.getStatus(repo.relativize(path)) ? 0
pathStatus = 0 if repo.isStatusIgnored(pathStatus)
if pathStatus > 0
@statuses[relativePath] = pathStatus
else