lib/mate/tmproj/ignores.rb in mate-1.0.2.1 vs lib/mate/tmproj/ignores.rb in mate-1.1.0

- old
+ new

@@ -17,14 +17,13 @@ add(dir, Pathname(`git config --get core.excludesfile`.strip)) dir.find do |path| Find.prune if ignore?(path) if path.directory? - if (ignore_file = path + '.gitignore').file? - add(path, ignore_file) - end - if (ignore_file = path + '.git/info/exclude').file? - add(path, ignore_file) + %w[.gitignore .tmignore .git/info/exclude].each do |ignore_file_name| + if (ignore_file = path + ignore_file_name).file? + add(path, ignore_file) + end end end end end