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

"git ls-files -i" does not shows ignored files on Windows

From
CPConstantine Plotnikov <constantine.plotnikov@gmail.com>
Date
May 26, 2009, 17:36 UTC
Message-ID
<85647ef50905261036u2d3c00c9lcf0df8f29de051ef@mail.gmail.com>

I have encountered a strange problem on Windows (cygwin git 1.6.1.2 and msys git version 1.6.2.2.1669.g7eaf8).

Lets execute the following sequence of commands:

git init echo a >.gitignore echo test >a git ls-files -i --exclude-standard

The last command in the sequence gives an empty output. But "git status" and "git ls-files -o --exclude-standard" show only ".gitignore" file as untracked. So the file "a" is considered as ignored by git, but it is not displayed in output "git ls-files -i --exclude-standard".

Does the bug happen on other platforms and versions of git?

Regards, Constantine

Next: Sitaram Chamarty
Message 1 of 2 in “"git ls-files -i" does not shows ignored files on Windows”
  1. Constantine PlotnikovMay 26, 2009
  2. Sitaram ChamartyMay 27, 2009

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.