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".
This commit is contained in:
Vladimir Panteleev 2017-08-17 00:41:10 +00:00 committed by David Bremner
parent 4d44976135
commit ca4688e103
14 changed files with 58 additions and 58 deletions

18
.gitignore vendored
View 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

View file

@ -1,4 +1,4 @@
*.py[co]
/docs/build
/docs/html
build/
/build/

View file

@ -1,7 +1,7 @@
# .gitignore for bindings/ruby
# Generated files
Makefile
mkmf.log
notmuch.so
/Makefile
/mkmf.log
/notmuch.so
*.o

2
compat/.gitignore vendored
View file

@ -1 +1 @@
zlib.pc
/zlib.pc

View file

@ -1,3 +1,3 @@
src/github.com/
pkg/
bin/
/src/github.com/
/pkg/
/bin/

View file

@ -1,2 +1,2 @@
notmuch-mutt.1
README.html
/notmuch-mutt.1
/README.html

28
debian/.gitignore vendored
View 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

View file

@ -1,2 +1,2 @@
*.pyc
_build
/_build

4
doc/.gitignore vendored
View file

@ -1,3 +1,3 @@
*.pyc
_build
config.dox
/_build
/config.dox

8
emacs/.gitignore vendored
View file

@ -1,4 +1,4 @@
.eldeps*
*.elc
notmuch-version.el
notmuch-pkg.el
/.eldeps*
/*.elc
/notmuch-version.el
/notmuch-pkg.el

View file

@ -1,4 +1,4 @@
tmp.*/
log.*/
corpus/
notmuch.cache.*/
/tmp.*/
/log.*/
/corpus/
/notmuch.cache.*/

View file

@ -1,2 +1,2 @@
*.tar.gz
*.tar.xz
/*.tar.gz
/*.tar.xz

22
test/.gitignore vendored
View 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.*

View file

@ -1 +1 @@
*.tar.xz
/*.tar.xz