summaryrefslogtreecommitdiff
path: root/Documentation/gitignore.txt
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-09 07:26:38 +0700
committerJunio C Hamano <gitster@pobox.com>2014-02-10 11:49:53 -0800
commit7e2e4b37d3d57a95a525ba1a18224ba04f858768 (patch)
tree4f4db8edbe17b887b4c641c34a59c824a16f5a68 /Documentation/gitignore.txt
parent16402b992e0332d2ac68106f4488b47175bf0a13 (diff)
downloadgit-7e2e4b37d3d57a95a525ba1a18224ba04f858768.tar.gz
dir: ignore trailing spaces in exclude patterns
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitignore.txt')
-rw-r--r--Documentation/gitignore.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
index f971960512..aa776234e1 100644
--- a/Documentation/gitignore.txt
+++ b/Documentation/gitignore.txt
@@ -77,6 +77,9 @@ PATTERN FORMAT
Put a backslash ("`\`") in front of the first hash for patterns
that begin with a hash.
+ - Trailing spaces are ignored unless they are quoted with backlash
+ ("`\`").
+
- An optional prefix "`!`" which negates the pattern; any
matching file excluded by a previous pattern will become
included again. If a negated pattern matches, this will