Move project.ignoredNames to config.core.ignoredNames

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-12-17 16:54:09 -08:00
parent a65a81fc53
commit bc49be6c2c
3 changed files with 7 additions and 7 deletions

View File

@@ -23,10 +23,6 @@ class Project
@setPath(path)
@editSessions = []
@buffers = []
@ignoredNames = [
'.git'
'.DS_Store'
]
@repo = new Git(path)
destroy: ->
@@ -59,7 +55,8 @@ class Project
isPathIgnored: (path) ->
for segment in path.split("/")
return true if _.contains(@ignoredNames, segment)
ignoredNames = config.get("core.ignoredNames") or []
return true if _.contains(ignoredNames, segment)
@ignoreRepositoryPath(path)

View File

@@ -16,6 +16,7 @@ TextMateTheme = require 'text-mate-theme'
module.exports =
class RootView extends View
@configDefaults:
ignoredNames: [".git", ".svn", ".DS_Store"]
extensions: []
@content: ->