summaryrefslogtreecommitdiffstats
path: root/gitignore.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-10 15:38:50 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-10 15:38:50 -0800
commitc087f14a2f85dacc56542e43b5d35a4ed7da4333 (patch)
tree97fff7b3113855cd9894db5dab538d576129a6e9 /gitignore.html
parent4624718dc6564bdf883e939e96dedc498840bd28 (diff)
downloadgit-htmldocs-c087f14a2f85dacc56542e43b5d35a4ed7da4333.tar.gz
Autogenerated HTML docs for v1.8.1-290-ga27d8
Diffstat (limited to 'gitignore.html')
-rw-r--r--gitignore.html34
1 files changed, 33 insertions, 1 deletions
diff --git a/gitignore.html b/gitignore.html
index 1863ed311..db498c38b 100644
--- a/gitignore.html
+++ b/gitignore.html
@@ -893,6 +893,38 @@ A leading slash matches the beginning of the pathname.
</p>
</li>
</ul></div>
+<div class="paragraph"><p>Two consecutive asterisks ("<code>**</code>") in patterns matched against
+full pathname may have special meaning:</p></div>
+<div class="ulist"><ul>
+<li>
+<p>
+A leading "<code>**</code>" followed by a slash means match in all
+ directories. For example, "<code>**/foo</code>" matches file or directory
+ "<code>foo</code>" anywhere, the same as pattern "<code>foo</code>". "**/foo/bar"
+ matches file or directory "<code>bar</code>" anywhere that is directly
+ under directory "<code>foo</code>".
+</p>
+</li>
+<li>
+<p>
+A trailing "/<strong>" matches everything inside. For example,
+ "abc/</strong>" matches all files inside directory "abc", relative
+ to the location of the <code>.gitignore</code> file, with infinite depth.
+</p>
+</li>
+<li>
+<p>
+A slash followed by two consecutive asterisks then a slash
+ matches zero or more directories. For example, "<code>a/**/b</code>"
+ matches "<code>a/b</code>", "<code>a/x/b</code>", "<code>a/x/y/b</code>" and so on.
+</p>
+</li>
+<li>
+<p>
+Other consecutive asterisks are considered invalid.
+</p>
+</li>
+</ul></div>
</div>
</div>
<div class="sect1">
@@ -966,7 +998,7 @@ use <em>git update-index &#45;&#45;assume-unchanged</em>.</p></div>
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2012-10-10 15:49:24 PDT
+Last updated 2013-01-10 15:37:47 PST
</div>
</div>
</body>