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

Re: Behavior of git ls-files

From
Clemens Buchacher <drizzd@aon.at>
Date
Mar 5, 2011, 08:47 UTC
Message-ID
<20110305084733.GA3039@toss>
In-Reply-To
<691824945.20110304183831@stzedn.de>
On Fri, Mar 04, 2011 at 06:38:31PM +0100, Steffen Jaeckel wrote:
> 
> Is the behavior of git ls-files correct or not?

Indeed, the behavior is not correct. It does not find any files which are excluded only due to a directory exclude.

In the cases without -i we do not even have to look at files under an ignored directory. So the matching rules are not applied correctly in this case.

We have the same problem with git ls-files -i -o, unless you also specify --directory (in which case, again, we do not need to look at files under the ignored directory).

Clemens
Previous: Steffen Jaeckel
Message 2 of 2 in “Behavior of git ls-files”
  1. Steffen JaeckelMar 4, 2011
  2. Clemens BuchacherMar 5, 2011

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.