mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Default status flags to 0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user