git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] check-ignore: correct documentation about output

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Nov 8, 2015, 20:10 UTC
Message-ID
<20151108201036.GA28434@spirit>

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 <dennis@kaarsemaker.net>
---
 Documentation/git-check-ignore.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-check-ignore.txt b/Documentation/git-check-ignore.txt
index 59531ab..0a628ac 100644
--- a/Documentation/git-check-ignore.txt
+++ b/Documentation/git-check-ignore.txt
@@ -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'.
-- 
2.6.3-495-gf0a7f49


-- 
Dennis Kaarsemaker <dennis@kaarsemaker.net>
http://twitter.com/seveas
Next: Dennis Kaarsemaker
Message 1 of 8 in “check-ignore: correct documentation about output”
  1. check-ignore: correct documentation about outputDennis Kaarsemaker, Nov 8, 2015
  2. Dennis KaarsemakerNov 16, 2015
  3. Stefan BellerNov 17, 2015
  4. Jeff KingNov 17, 2015
  5. Jeff KingNov 20, 2015
  6. Dennis KaarsemakerNov 20, 2015
  7. check-ignore: correct documentation about outputDennis Kaarsemaker, Nov 20, 2015
  8. Jeff KingNov 24, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.