diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-10 15:38:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-10 15:38:50 -0800 |
commit | c087f14a2f85dacc56542e43b5d35a4ed7da4333 (patch) | |
tree | 97fff7b3113855cd9894db5dab538d576129a6e9 /gitignore.txt | |
parent | 4624718dc6564bdf883e939e96dedc498840bd28 (diff) | |
download | git-htmldocs-c087f14a2f85dacc56542e43b5d35a4ed7da4333.tar.gz |
Autogenerated HTML docs for v1.8.1-290-ga27d8
Diffstat (limited to 'gitignore.txt')
-rw-r--r-- | gitignore.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gitignore.txt b/gitignore.txt index 1b82fe196..91a643803 100644 --- a/gitignore.txt +++ b/gitignore.txt @@ -108,6 +108,25 @@ PATTERN FORMAT For example, "/{asterisk}.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c". +Two consecutive asterisks ("`**`") in patterns matched against +full pathname may have special meaning: + + - A leading "`**`" followed by a slash means match in all + directories. For example, "`**/foo`" matches file or directory + "`foo`" anywhere, the same as pattern "`foo`". "**/foo/bar" + matches file or directory "`bar`" anywhere that is directly + under directory "`foo`". + + - A trailing "/**" matches everything inside. For example, + "abc/**" matches all files inside directory "abc", relative + to the location of the `.gitignore` file, with infinite depth. + + - A slash followed by two consecutive asterisks then a slash + matches zero or more directories. For example, "`a/**/b`" + matches "`a/b`", "`a/x/b`", "`a/x/y/b`" and so on. + + - Other consecutive asterisks are considered invalid. + NOTES ----- |