Use rooted paths in .gitignore files
authorVladimir Panteleev <notmuch@thecybershadow.net>
Thu, 17 Aug 2017 00:41:10 +0000 (00:41 +0000)
committerDavid Bremner <david@tethera.net>
Fri, 18 Aug 2017 22:42:35 +0000 (19:42 -0300)
commitca4688e103c644fa383108a79668e8e0b4dbe262
treeb837ca32d33cd5cbaab5792571bb9439e33e51af
parent4d44976135ec69316f3f681cf7083e5188ab9d70
Use rooted paths in .gitignore files

A leading / in paths in a .gitignore file matches the beginning of the
path, meaning that for patterns without slashes, git will match files
only in the current directory as opposed to in any subdirectory.

Prefix relevant paths with / in .gitignore files, to prevent
accidentally ignoring files in subdirectories and possibly slightly
improve the performance of "git status".
14 files changed:
.gitignore
bindings/python/.gitignore
bindings/ruby/.gitignore
compat/.gitignore
contrib/go/.gitignore
contrib/notmuch-mutt/.gitignore
debian/.gitignore
devel/nmbug/doc/.gitignore
doc/.gitignore
emacs/.gitignore
performance-test/.gitignore
performance-test/download/.gitignore
test/.gitignore
test/test-databases/.gitignore