summaryrefslogtreecommitdiffstats
path: root/gitignore.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-06-13 19:57:10 +0000
committerJunio C Hamano <junio@kernel.org>2010-06-13 19:57:10 +0000
commita574a0905e5c1cf6915624561a011e486cccc25d (patch)
treef8e1c02eb76cc8831442ead327d686de001c8b60 /gitignore.html
parent13002fbb3347e98e74c1ff7ec581fda52a09dd72 (diff)
downloadgit-htmldocs-a574a0905e5c1cf6915624561a011e486cccc25d.tar.gz
Autogenerated HTML docs for v1.7.1-331-ga5080
Diffstat (limited to 'gitignore.html')
-rw-r--r--gitignore.html19
1 files changed, 13 insertions, 6 deletions
diff --git a/gitignore.html b/gitignore.html
index 7e5ba9a1b..8d5685d87 100644
--- a/gitignore.html
+++ b/gitignore.html
@@ -419,7 +419,9 @@ If the pattern ends with a slash, it is removed for the
<p>
If the pattern does not contain a slash <em>/</em>, git treats it as
a shell glob pattern and checks for a match against the
- pathname without leading directories.
+ pathname relative to the location of the <tt>.gitignore</tt> file
+ (relative to the toplevel of the work tree if not from a
+ <tt>.gitignore</tt> file).
</p>
</li>
<li>
@@ -428,10 +430,15 @@ Otherwise, git treats the pattern as a shell glob suitable
for consumption by fnmatch(3) with the FNM_PATHNAME flag:
wildcards in the pattern will not match a / in the pathname.
For example, "Documentation/*.html" matches
- "Documentation/git.html" but not
- "Documentation/ppc/ppc.html". A leading slash matches the
- beginning of the pathname; for example, "/*.c" matches
- "cat-file.c" but not "mozilla-sha1/sha1.c".
+ "Documentation/git.html" but not "Documentation/ppc/ppc.html"
+ or "tools/perf/Documentation/perf.html".
+</p>
+</li>
+<li>
+<p>
+A leading slash matches the beginning of the pathname.
+ For example, "/*.c" matches "cat-file.c" but not
+ "mozilla-sha1/sha1.c".
</p>
</li>
</ul></div>
@@ -486,7 +493,7 @@ Frank Lichtenheld, and the git-list &lt;git@vger.kernel.org&gt;.</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2010-04-24 02:56:13 UTC
+Last updated 2010-06-13 19:56:37 UTC
</div>
</div>
</body>