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

Re: Bug: git ls-files and ignored directories

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 3, 2012, 22:24 UTC
Message-ID
<7vwr3ovxsp.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4FCB4E1E.2010907@phononoia.at>
Christoph Buchner <bilderbuchi@phononoia.at> writes:
[please do not top-post]
Show 14 quoted lines
> On 06/03/2012 12:56 AM, Junio C Hamano wrote:
>
>> The patches are queued to 'pu'.  Do they fix your issue?
> 
> Yes they do.
> In my test repo, git compiled from current pu branch shows
> git ls-files --exclude-standard -i
> apps/devApps/projectGenerator/.svn/wrongly-committed-svn.txt
> apps/devApps/projectGenerator/some-wrong-file.txt
> while git 1.7.9.5 shows
> apps/devApps/projectGenerator/some-wrong-file.txt
>
> Thank you for fixing this! Which git release is planned to contain the
> fix (if that can be said yet)? I'm not familiar with your workflow..

As we are already in "regression fix only" phase, it won't be in the upcoming 1.7.11 series, even though it may deserve to be in 1.7.11.2 maintenance release.

I see other uses of excluded() in builtin/add.c and unpack-trees.c; these call sites need to be audited.

If they have the same problem, it probably is a good idea to convert them to use path_excluded(), move the path_excluded() function and its supporting infrastructure from builtin/ls-files.c to dir.c, and make excluded() a file-static function to dir.c in order to avoid similar problems in the future. Or their use may be alright.

The work described in the previous paragraph preferrably should happen before the change is shipped as part of any release.

Previous: Christoph BuchnerNext: Junio C Hamano
Message 12 of 13 in “Bug: git ls-files and ignored directories”
  1. Christoph BuchnerMay 30, 2012
  2. Christoph BuchnerMay 31, 2012
  3. Jeff KingJun 1, 2012
  4. Clemens BuchacherJun 1, 2012
  5. Junio C HamanoJun 1, 2012
  6. Junio C HamanoJun 1, 2012
  7. Junio C HamanoJun 1, 2012
  8. Nguyen Thai Ngoc DuyJun 2, 2012
  9. Christoph BuchnerJun 2, 2012
  10. Junio C HamanoJun 2, 2012
  11. Christoph BuchnerJun 3, 2012
  12. Junio C HamanoJun 3, 2012
  13. Junio C HamanoJun 4, 2012

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.