From 6954edd8a224cdfd40f56a5655f7e27a2e098534 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 10 Dec 2012 10:28:53 -0800 Subject: [PATCH] Show status icon for staged changes --- src/app/git.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/git.coffee b/src/app/git.coffee index 6d29f1b53..d300de60a 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -35,11 +35,16 @@ class Git isPathModified: (path) -> modifiedFlags = @statusFlags.working_dir_modified | @statusFlags.working_dir_delete | - @statusFlags.working_dir_typechange + @statusFlags.working_dir_typechange | + @statusFlags.index_modified | + @statusFlags.index_deleted | + @statusFlags.index_typechange (@getPathStatus(path) & modifiedFlags) > 0 isPathNew: (path) -> - (@getPathStatus(path) & @statusFlags.working_dir_new) > 0 + newFlags = @statusFlags.working_dir_new | + @statusFlags.index_new + (@getPathStatus(path) & newFlags) > 0 relativize: (path) -> workingDirectory = @getWorkingDirectory()