mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user