From 73f50c430f58ecbcfef8849f63d2b840d40eddfe Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 8 Jun 2006 03:41:45 +0000 Subject: [PATCH] Autogenerated man pages for v1.4.0-rc2 --- man1/git-ls-files.1 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man1/git-ls-files.1 b/man1/git-ls-files.1 index efe6af5c..b3b20f5d 100755 --- a/man1/git-ls-files.1 +++ b/man1/git-ls-files.1 @@ -219,7 +219,7 @@ An exclude pattern is of the following format: an optional prefix \fI!\fR which means that the fate this pattern specifies is "include", not the usual "exclude"; the remainder of the pattern string is interpreted according to the following rules\&. .TP \(bu -if it does not contain a slash \fI/\fR, 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)\&. +if it does not contain a slash \fI/\fR, it is a shell glob pattern and used to match against the filename without leading directories\&. .TP \(bu otherwise, it is a shell glob pattern, suitable for consumption by fnmatch(3) with FNM_PATHNAME flag\&. I\&.e\&. a slash in the pattern must match a slash in the pathname\&. "Documentation/*\&.html" matches "Documentation/git\&.html" but not "ppc/ppc\&.html"\&. As a natural exception, "/*\&.c" matches "cat\-file\&.c" but not "mozilla\-sha1/sha1\&.c"\&. @@ -243,6 +243,20 @@ An example: \-\-exclude\-per\-directory=\&.gitignore .fi + +Another example: + +.nf + $ cat \&.gitignore + vmlinux* + $ ls arch/foo/kernel/vm* + arch/foo/kernel/vmlinux\&.lds\&.S + $ echo '!/vmlinux*' >arch/foo/kernel/\&.gitignore +.fi + + +The second \&.gitignore keeps arch/foo/kernel/vmlinux\&.lds\&.S file from getting ignored\&. + .SH "SEE ALSO" -- 2.11.0