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

[Bug?] .git visible in git-status

From
RWRadosław Warzocha <radoslaw.warzocha@gmail.com>
Date
Oct 14, 2015, 13:21 UTC
Message-ID
<CAA4qsDT66o3ZTCsEoNQ_yP6O0fNgdMA=RZ8OWUMB-gp-A4pj0g@mail.gmail.com>
I've recently stumbled upon interesting issue - .git/* files occurring
in the git-status output.
Let me elaborate:
1. When running
> git status -s
no .git/* files are displayed
2. When running:
> git status -s .git
only an empty line is printed out
3. But when I run (for example):
> git status -s .git/HEAD

I get ?? .git/HEAD Files are listed also when -s option is not present. When providing .git/* all of the files under .git directory are printed.

I don't know if this is desired behavior, but i guess it's not.

Best regards Radek

Message 1 of 1 in “[Bug?] .git visible in git-status”
  1. Radosław WarzochaOct 14, 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.