From 95775361b141ce04d02a447eefe779c87265c608 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 19 Nov 2012 09:26:00 -0800 Subject: [PATCH] Create method that tests if path is Git ignored --- src/app/project.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/project.coffee b/src/app/project.coffee index b2e745328..11dde5468 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -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: ->