summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVladimir Panteleev <notmuch@thecybershadow.net>2017-08-17 00:41:10 +0000
committerDavid Bremner <david@tethera.net>2017-08-18 19:42:35 -0300
commitca4688e103c644fa383108a79668e8e0b4dbe262 (patch)
treeb837ca32d33cd5cbaab5792571bb9439e33e51af /contrib
parent4d44976135ec69316f3f681cf7083e5188ab9d70 (diff)
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".
Diffstat (limited to 'contrib')
-rw-r--r--contrib/go/.gitignore6
-rw-r--r--contrib/notmuch-mutt/.gitignore4
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/go/.gitignore b/contrib/go/.gitignore
index c394479f..223504b1 100644
--- a/contrib/go/.gitignore
+++ b/contrib/go/.gitignore
@@ -1,3 +1,3 @@
-src/github.com/
-pkg/
-bin/
+/src/github.com/
+/pkg/
+/bin/
diff --git a/contrib/notmuch-mutt/.gitignore b/contrib/notmuch-mutt/.gitignore
index 682a5779..116bb715 100644
--- a/contrib/notmuch-mutt/.gitignore
+++ b/contrib/notmuch-mutt/.gitignore
@@ -1,2 +1,2 @@
-notmuch-mutt.1
-README.html
+/notmuch-mutt.1
+/README.html