From 3703877ae8c70cedb2934afe7f4c07fe8a6fcfc9 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 28 Feb 2013 15:45:00 -0800 Subject: [PATCH] Default status flags to 0 --- src/app/git.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/git.coffee b/src/app/git.coffee index 0a7859858..f065c209b 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -81,7 +81,7 @@ class Git isPathIgnored: (path) -> @getRepo().isIgnored(@relativize(path)) - isStatusModified: (status) -> + isStatusModified: (status=0) -> modifiedFlags = @statusFlags.working_dir_modified | @statusFlags.working_dir_delete | @statusFlags.working_dir_typechange | @@ -93,7 +93,7 @@ class Git isPathModified: (path) -> @isStatusModified(@getPathStatus(path)) - isStatusNew: (status) -> + isStatusNew: (status=0) -> newFlags = @statusFlags.working_dir_new | @statusFlags.index_new (status & newFlags) > 0