Create method that tests if path is Git ignored

This commit is contained in:
Kevin Sawicki
2012-11-19 09:26:00 -08:00
parent 6f0a680013
commit 95775361b1

View File

@@ -79,7 +79,7 @@ class Project
for regex in @ignoredPathRegexes
return true if path.match(regex)
@hideIgnoredFiles and @repo.isPathIgnored(path)
@ignoreRepositoryPath(path)
ignoreFile: (path) ->
lastSlash = path.lastIndexOf('/')
@@ -93,6 +93,9 @@ class Project
for regex in @ignoredPathRegexes
return true if path.match(regex)
@ignoreRepositoryPath(path)
ignoreRepositoryPath: (path) ->
@hideIgnoredFiles and @repo.isPathIgnored(path)
ignorePathRegex: ->