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)
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

index 7b283fb3bff2482738b29e5a502596ed2176ec4b..0ccd217ebd558670d5fe8ec584fb72a780b3a4e2 100644 (file)
@@ -1,16 +1,16 @@
-.first-build-message
-Makefile.config
-sh.config
-version.stamp
+/.first-build-message
+/Makefile.config
+/sh.config
+/version.stamp
 TAGS
 tags
 *cscope*
-.deps
+/.deps
 /notmuch
-notmuch-shared
-libnotmuch.so*
-libnotmuch*.dylib
+/notmuch-shared
+/lib/libnotmuch.so*
+/lib/libnotmuch*.dylib
 *.[ao]
 *~
 .*.swp
-releases
+/releases
index da0732e90b31349143a60dd4f273776481efe80e..601acdd79095677e43b0c2683debc1ab6d588fa6 100644 (file)
@@ -1,4 +1,4 @@
 *.py[co]
 /docs/build
 /docs/html
-build/
+/build/
index d682798abfe6421881c0f113fbecaae3c455abb6..c57ae63f43921f026ac32cf3c222c8d1b3530431 100644 (file)
@@ -1,7 +1,7 @@
 # .gitignore for bindings/ruby
 
 # Generated files
-Makefile
-mkmf.log
-notmuch.so
+/Makefile
+/mkmf.log
+/notmuch.so
 *.o
index 107ba17aaeba555153a95cbdc8e3d94fe0619e61..7ede45e93d50148284a77d35bc7d07f22ccff976 100644 (file)
@@ -1 +1 @@
-zlib.pc
+/zlib.pc
index c394479fe7cba2be7384954122f88c5f1f839ac3..223504b17147446a4ff16f128d1f1fd6b6e4b629 100644 (file)
@@ -1,3 +1,3 @@
-src/github.com/
-pkg/
-bin/
+/src/github.com/
+/pkg/
+/bin/
index 682a57793ce75520cd975f32333229dfdbb37666..116bb715b681d16c25ec0f715db6fd1f5be26e3d 100644 (file)
@@ -1,2 +1,2 @@
-notmuch-mutt.1
-README.html
+/notmuch-mutt.1
+/README.html
index e8c2e82a0247b187671752e7053c4b73ebd48526..ab384182257a1fa2aa76efb8553186e98c9201fc 100644 (file)
@@ -1,14 +1,14 @@
-tmp/
-libnotmuch-dev/
-libnotmuch*/
-notmuch-emacs/
-notmuch/
-notmuch-dbg/
-notmuch-mutt/
-notmuch-vim/
-ruby-notmuch/
-python*-notmuch/
-*.debhelper
-*.debhelper.log
-*.substvars
-files
+/tmp/
+/libnotmuch-dev/
+/libnotmuch*/
+/notmuch-emacs/
+/notmuch/
+/notmuch-dbg/
+/notmuch-mutt/
+/notmuch-vim/
+/ruby-notmuch/
+/python*-notmuch/
+/*.debhelper
+/*.debhelper.log
+/*.substvars
+/files
index 4930881a69ad694c5401d9f71f38ca3b98ce0d20..f25d695cccbf924085af44ed3f67e57c7e993103 100644 (file)
@@ -1,2 +1,2 @@
 *.pyc
-_build
+/_build
index 9fa35d08a95e3c850ceafccdea523f310f775e43..bbb749fabda3b6820db81a46330440df6052006a 100644 (file)
@@ -1,3 +1,3 @@
 *.pyc
-_build
-config.dox
+/_build
+/config.dox
index 8e15eed7111806cad24eaa0185d73cea6b23e83a..fbf8dde6f1760c409036d6b9b473a59d3c943ae6 100644 (file)
@@ -1,4 +1,4 @@
-.eldeps*
-*.elc
-notmuch-version.el
-notmuch-pkg.el
+/.eldeps*
+/*.elc
+/notmuch-version.el
+/notmuch-pkg.el
index f3f9be41856b89863d20059ec3877110907b76d2..8a5dabf5a0346bffc7512eddd915581f4ed8c49d 100644 (file)
@@ -1,4 +1,4 @@
-tmp.*/
-log.*/
-corpus/
-notmuch.cache.*/
+/tmp.*/
+/log.*/
+/corpus/
+/notmuch.cache.*/
index 7b092346e4239ed9ced54115b05e67e35d60883f..5c3562045af230d93163323b39dbff144f4ed665 100644 (file)
@@ -1,2 +1,2 @@
-*.tar.gz
-*.tar.xz
+/*.tar.gz
+/*.tar.xz
index 226019ed975913ff7141565012b11a29be3cdd3a..73fe7e24620f923826803dbaa0449e1350cd1716 100644 (file)
@@ -1,11 +1,11 @@
-arg-test
-corpora.mail
-hex-xcode
-parse-time
-random-corpus
-smtp-dummy
-symbol-test
-make-db-version
-test-results
-ghost-report
-tmp.*
+/arg-test
+/corpora.mail
+/hex-xcode
+/parse-time
+/random-corpus
+/smtp-dummy
+/symbol-test
+/make-db-version
+/test-results
+/ghost-report
+/tmp.*
index b5624b74f80412bfa5317d790615a2605fca7095..9452199f13a84781558a555477c4e6b62d8148dd 100644 (file)
@@ -1 +1 @@
-*.tar.xz
+/*.tar.xz