mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Create method that tests if path is Git ignored
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user