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

Re: git filter bug

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 13, 2022, 21:15 UTC
Message-ID
<c2f49b4f-8588-bae1-97cf-91a36b3f16f9@kdbg.org>
In-Reply-To
<xmqqsfo879r7.fsf@gitster.g>
Am 13.06.22 um 19:29 schrieb Junio C Hamano:
Show 9 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes:
> 
>> git status does not compute differences; it only looks at the stat
>> information, and that is by design for performance reasons. So, IMO,
>> this is working as designed and not a bug.
> 
> Hmph, is that true?  I thought "git status" did an equivalent of
> diff.autoRefreshIndex just like other commands like "git diff" at
> the Porcelain level.

Is it true? I don't know; you tell me ;) git status certainly does autoRefreshIndex, but is that based on a diff computation? I thought git status looks only at stat information.

> Is this more like the commonly seen "after you futzed the attributes
> to affect normalization, "--renormalize" is needed to force the
> index to match the cleaned version of working tree under the new
> clean filter rules", I wonder?

Not in this case. The modified file that git status reports happens long after git commit -a has already applied the new filter.

-- Hannes
Previous: Junio C HamanoNext: Shupak, Vitaly
Message 4 of 6 in “git filter bug”
  1. Udoff, MarcJun 10, 2022
  2. Johannes SixtJun 11, 2022
  3. Junio C HamanoJun 13, 2022
  4. Johannes SixtJun 13, 2022
  5. Shupak, VitalyJun 14, 2022
  6. Udoff, MarcJun 23, 2022

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.