summaryrefslogtreecommitdiffstats
path: root/git-ls-files.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-06-08 03:41:35 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-06-08 03:41:35 +0000
commit125c327795d6f6cf337c5ddc3aa1fa632eb6874f (patch)
tree40fb24ccec8ade3a33fca85be0da983c07bbd350 /git-ls-files.html
parentf1d1480d8b938444a1617692e3f7df6d8e4cc911 (diff)
downloadgit-htmldocs-125c327795d6f6cf337c5ddc3aa1fa632eb6874f.tar.gz
Autogenerated HTML docs for v1.4.0-rc2
Diffstat (limited to 'git-ls-files.html')
-rw-r--r--git-ls-files.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/git-ls-files.html b/git-ls-files.html
index ec6f1d8c0..315c00240 100644
--- a/git-ls-files.html
+++ b/git-ls-files.html
@@ -628,8 +628,7 @@ an optional prefix <em>!</em> which means that the fate this pattern
<p>
if it does not contain a slash <em>/</em>, it is a shell glob
pattern and used to match against the filename without
- leading directories (i.e. the same way as the current
- implementation).
+ leading directories.
</p>
</li>
<li>
@@ -659,6 +658,17 @@ otherwise, it is a shell glob pattern, suitable for
--exclude-from=.git/ignore \
--exclude-per-directory=.gitignore</tt></pre>
</div></div>
+<p>Another example:</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt> $ cat .gitignore
+ vmlinux*
+ $ ls arch/foo/kernel/vm*
+ arch/foo/kernel/vmlinux.lds.S
+ $ echo '!/vmlinux*' &gt;arch/foo/kernel/.gitignore</tt></pre>
+</div></div>
+<p>The second .gitignore keeps <tt>arch/foo/kernel/vmlinux.lds.S</tt> file
+from getting ignored.</p>
</div>
<h2>See Also</h2>
<div class="sectionbody">
@@ -678,7 +688,7 @@ otherwise, it is a shell glob pattern, suitable for
</div>
<div id="footer">
<div id="footer-text">
-Last updated 05-May-2006 23:14:13 UTC
+Last updated 08-Jun-2006 03:41:12 UTC
</div>
</div>
</body>