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

Potential bug in ls-files (version 1.7.9.5)

From
HTHamilton Turner <hamiltont@gmail.com>
Date
Jul 7, 2014, 21:46 UTC
Message-ID
<CAFow3A_f+nPCR1zqS9WdH1V9pNdSP=zRNt2UxbHpOz1d6miQEg@mail.gmail.com>

I'd appreciate if someone could confirm that this is a bug in git, as this works as expected with git 1.8.5.2.

I'm not sure if this 1.7.X is still supported, but I think it's still the latest git-core available in Ubuntu 12.04 repositories.

I'm having problems with git ls-files --others --ignored --exclude-standard not listing some ignored files.

My project has this directory structure

. ├── aspnet │ ├── .gitignore │ ├── __init__.py │ ├── lib │ │ ├── <lots of big stuff>

My aspnet/.gitignore lists lib/*, and git add aspnet/lib/foo reports that this path is ignored.

But git ls-files --others --ignored --exclude-standard does not list the files under lib. These are untracked files, they do show up in output if I do git ls-files --others, but not if I provide the ignored flag.

With 1.8.5.2, all of the files under lib are listed if I ls-files --ignored --others --exclude-standard

Tracks http://stackoverflow.com/questions/24620108/show-all-ignored-files-in-git
Thanks,
Next: Jonathan Nieder
Message 1 of 2 in “Potential bug in ls-files (version 1.7.9.5)”
  1. Hamilton TurnerJul 7, 2014
  2. Jonathan NiederJul 7, 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.