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

Re: [PATCH] git-add--interactive: never skip files included in index

From
Jeff King <peff@peff.net>
Date
Oct 11, 2009, 19:14 UTC
Message-ID
<20091011191440.GA2532@coredump.intra.peff.net>
In-Reply-To
<7viqelwyp1.fsf@alter.siamese.dyndns.org>
On Sun, Oct 11, 2009 at 11:52:10AM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> Thanks.
> 
> The change looks innocent enough and I do not expect to see any unexpected
> regressions from it, but it is a bit too late for 1.6.5 cycle, so let's
> queue this fix and aim for 1.6.5.1.

I think this patch is good to apply, as there is no conceivable reason to even look at excludes when listing modified files.

But this triggered my spider sense; shouldn't --exclude-standard simply be a no-op for ls-files when we are not listing untracked files? And bisecting, it seems that it is a very old regression caused by 63d285c (per-directory-exclude: lazily read .gitignore files, 2007-11-29).

I don't know if it is worth fixing now or not. It does seem a bit inconsistent to me (since everything else is very clear that .gitignore is only about untracked files), but nobody seems to have been complaining for the last two years (and they may have, in fact, been coding to the new behavior).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “git-add--interactive: never skip files included in index”
  1. git-add--interactive: never skip files included in indexPauli Virtanen, Oct 10, 2009
  2. Junio C HamanoOct 11, 2009
  3. Jeff KingOct 11, 2009
  4. Junio C HamanoOct 11, 2009
  5. Jeff KingOct 12, 2009
  6. Junio C HamanoOct 12, 2009
  7. Jeff KingOct 12, 2009
  8. Junio C HamanoOct 12, 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.