summaryrefslogtreecommitdiffstats
path: root/gitignore.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-02-17 03:53:51 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-02-17 03:53:51 +0000
commit26e590af87e1a4283ac0668cc1386493576f703b (patch)
tree115c1ae9bf587e5d00ec7456acd7997e3b0f3864 /gitignore.txt
parent21391935ea09bef7fec78d01ee8f9e7d103fa710 (diff)
downloadgit-htmldocs-26e590af87e1a4283ac0668cc1386493576f703b.tar.gz
Autogenerated HTML docs for v1.5.4.1-183-gf873
Diffstat (limited to 'gitignore.txt')
-rw-r--r--gitignore.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitignore.txt b/gitignore.txt
index 08373f52b..e847b3ba6 100644
--- a/gitignore.txt
+++ b/gitignore.txt
@@ -57,6 +57,13 @@ Patterns have the following format:
included again. If a negated pattern matches, this will
override lower precedence patterns sources.
+ - If the pattern ends with a slash, it is removed for the
+ purpose of the following description, but it would only find
+ a match with a directory. In other words, `foo/` will match a
+ directory `foo` and paths underneath it, but will not match a
+ regular file or a symbolic link `foo` (this is consistent
+ with the way how pathspec works in general in git).
+
- If the pattern does not contain a slash '/', git treats it as
a shell glob pattern and checks for a match against the
pathname without leading directories.