check-ignore: correct documentation about output
PATCH 1/1 check-ignore: correct documentation about output
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion.
--- Documentation/git-check-ignore.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Documentation/git-check-ignore.txt +3 -4
@@ -16,10 +16,9 @@ DESCRIPTION ----------- For each pathname given via the command-line or from a file via -`--stdin`, show the pattern from .gitignore (or other input files to -the exclude mechanism) that decides if the pathname is excluded or -included. Later patterns within a file take precedence over earlier -ones. +`--stdin`, check whether the file is excluded by .gitignore (or other +input files to the exclude mechanism) and output the path if it is +excluded. By default, tracked files are not shown at all since they are not subject to exclude rules; but see `--no-index'.
Signature · 6 lines
2.6.3-495-gf0a7f49 -- Dennis Kaarsemaker <[email protected]> http://twitter.com/seveas
Ping.
Quoted 32 lines · Dennis Kaarsemaker
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion.
Signed-off-by Dennis Kaarsemaker <[email protected]>--- Documentation/git-check-ignore.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)Documentation/git renamed from Documentation/git-check-ignore.txt +0
-1-check-ignore.txtindex 59531ab..0a628ac 100644
Documentation/git-check-ignore.txt +1
-4@@ -16,10 +16,9 @@ DESCRIPTION ----------- For each pathname given via the command-line or from a file via -`--stdin`, show the pattern from .gitignore (or other input files to -the exclude mechanism) that decides if the pathname is excluded or -included. Later patterns within a file take precedence over earlier -ones. +`--stdin`, check whether the file is excluded by .gitignore (orother
Documentation/git-check-ignore.txt +2
-0+input files to the exclude mechanism) and output the path if it is +excluded. By default, tracked files are not shown at all since they are not subject to exclude rules; but see `--no-index'.Signature · 1 line
2.6.3-495-gf0a7f49
Signature · 2 lines
Dennis Kaarsemaker http://www.kaarsemaker.net
+cc Jeff
Quoted 1 line · Dennis Kaarsemaker
Ping.
Junio is on vacation, so Jeff is our interim maintainer, and it seems he isn't up to full power as Junio. :)
Quoted 8 lines · Stefan Beller
+cc Jeff
Quoted 1 line · Dennis Kaarsemaker
Ping.
Junio is on vacation, so Jeff is our interim maintainer, and it seems he isn't up to full power as Junio. :)
Yes, I'm sorry, I've been doing a terrible job so far, as I haven't pushed out anything. I'm making it my priority over the next day or so.
-Peff
Quoted 2 lines · Dennis Kaarsemaker
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion.
Yeah, I think the described behavior is really about the "-v" output.
Documentation/git-check-ignore.txt DESCRIPTION · line 21
Quoted 13 lines
Documentation/git-check-ignore.txt +3
-4@@ -16,10 +16,9 @@ DESCRIPTION ----------- For each pathname given via the command-line or from a file via -`--stdin`, show the pattern from .gitignore (or other input files to -the exclude mechanism) that decides if the pathname is excluded or -included. Later patterns within a file take precedence over earlier -ones. +`--stdin`, check whether the file is excluded by .gitignore (or other +input files to the exclude mechanism) and output the path if it is +excluded.
This just drops the mention of patterns entirely. Is the description of "-v" sufficient to cover this (especially I am thinking of the last-pattern-wins behavior)?
-Peff
[Peff, sorry for the duplicate mail. It seems I can't brain today...]
Quoted 6 lines · Jeff King
Quoted 2 lines · Dennis Kaarsemaker
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion.
Yeah, I think the described behavior is really about the "-v" output.
Yup.
Quoted 5 lines
Quoted 5 lines
Documentation/git-check-ignore.txt +0
-0@@ -16,10 +16,9 @@ DESCRIPTION -----------
Quoted 15 lines
Documentation/git-check-ignore.txt DESCRIPTION · line 21
Quoted 11 lines
Documentation/git-check-ignore.txt +0
-1For each pathname given via the command-line or from a file via -`--stdin`, show the pattern from .gitignore (or other input filesto
Documentation/git-check-ignore.txt +0
-2-the exclude mechanism) that decides if the pathname is excluded or -included. Later patterns within a file take precedence overearlier
-ones.
+--stdin, check whether the file is excluded by .gitignore (or otherDocumentation/git-check-ignore.txt +2
-0+input files to the exclude mechanism) and output the path if it is +excluded.This just drops the mention of patterns entirely. Is the description of "-v" sufficient to cover this (especially I am thinking of the last-pattern-wins behavior)?
The -v should then also describe precendence rules between files. Or maybe just link to gitignore(5).
Signature · 2 lines
Dennis Kaarsemaker www.kaarsemaker.net
PATCH v2 1/1 check-ignore: correct documentation about output
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion. Instead of moving the partial exclude pattern precendence information to the -v option where it belongs, link to gitignore(5) which describes this more thoroughly.
--- Documentation/git-check-ignore.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/git-check-ignore.txt +5 -5
@@ -16,10 +16,9 @@ DESCRIPTION ----------- For each pathname given via the command-line or from a file via -`--stdin`, show the pattern from .gitignore (or other input files to -the exclude mechanism) that decides if the pathname is excluded or -included. Later patterns within a file take precedence over earlier -ones. +`--stdin`, check whether the file is excluded by .gitignore (or other +input files to the exclude mechanism) and output the path if it is +excluded. By default, tracked files are not shown at all since they are not subject to exclude rules; but see `--no-index'.
@@ -32,7 +31,8 @@ OPTIONS -v, --verbose:: Also output details about the matching pattern (if any) - for each given pathname. + for each given pathname. For precedence rules within and + between exclude sources, see linkgit:gitignore[5]. --stdin:: Read pathnames from the standard input, one per line,
Signature · 6 lines
2.6.3-495-gf0a7f49 -- Dennis Kaarsemaker <[email protected]> http://twitter.com/seveas
Quoted 10 lines · Dennis Kaarsemaker
By default git check-ignore shows only the filenames that will be ignored, not the pattern that causes their exclusion. Instead of moving the partial exclude pattern precendence information to the -v option where it belongs, link to gitignore(5) which describes this more thoroughly.
Signed-off-by Dennis Kaarsemaker <[email protected]>--- Documentation/git-check-ignore.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Thanks, your update looks good to me.
-Peff