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

[PATCH] check-ignore: clarify treatment of tracked files

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 4, 2014, 15:23 UTC
Message-ID
<fbc5799c32357e8bff0c690ba7bc4cd46374684d.1417706481.git.git@drmicha.warpmail.net>
In-Reply-To
<5480777D.6000205@drmicha.warpmail.net>

By default, check-ignore does not list tracked files at all since they are not subject to ignore patterns.

Make this clearer in the man page.
Reported-by: Guilherme <guibufolo@gmail.com>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
That really is a bit confusing. Does this help?
 Documentation/git-check-ignore.txt | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/Documentation/git-check-ignore.txt b/Documentation/git-check-ignore.txt
index ee2e091..788a011 100644
--- a/Documentation/git-check-ignore.txt
+++ b/Documentation/git-check-ignore.txt
@@ -21,6 +21,9 @@ the exclude mechanism) that decides if the pathname is excluded or
 included.  Later patterns within a file take precedence over earlier
 ones.
 
+By default, tracked files are not shown at all since they are not
+subject to exclude rules; but see `--no-index'.
+
 OPTIONS
 -------
 -q, --quiet::
-- 
2.2.0.rc3.286.g888a711
Previous: Michael J GruberNext: Junio C Hamano
Message 5 of 7 in “git add <single file> and git add <list of files> behave differentely for ignored files”
  1. GuilhermeDec 4, 2014
  2. Konstantin KhomoutovDec 4, 2014
  3. GuilhermeDec 4, 2014
  4. Michael J GruberDec 4, 2014
  5. check-ignore: clarify treatment of tracked filesMichael J Gruber, Dec 4, 2014
  6. Junio C HamanoDec 4, 2014
  7. Michael J GruberDec 8, 2014

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.