lib/mate/tmproj/ignores.rb in mate-1.0.1 vs lib/mate/tmproj/ignores.rb in mate-1.0.2
- old
+ new
@@ -16,11 +16,16 @@
add(dir, Pathname(`git config --get core.excludesfile`.strip))
dir.find do |path|
Find.prune if ignore?(path)
- if path.directory? && (ignore_file = path + '.gitignore').file?
- add(path, ignore_file)
+ 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)
+ end
end
end
end
def ignore?(path)