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

Re: git add —ignore-errors causes --renormalize

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 19, 2019, 17:08 UTC
Message-ID
<7fb24fe7-4d14-a2ba-f8b6-94c88cb0ecde@web.de>
In-Reply-To
<20190117162711.GA7935@sigill.intra.peff.net>
On 17.01.19 17:27, Jeff King wrote:
Show 23 quoted lines
> On Thu, Jan 17, 2019 at 06:22:05PM +0300, Dmitriy Smirnov wrote:
>
>> Calling `git add —ignore-errors` appears to be equal to calling `git add —renormalize`:
>>
>> Main.java is saved with CRLF in repo
>> git config core.autocrlf = input
>>
>> $ src  git:(master) echo line >> Main.java
>> $ src  git:(master) git add --ignore-errors Main.java
>> $ src  git:(master) git commit -m "Ignore errors"
>> [master cf24b3b] Ignore errors
>>  1 file changed, 13 insertions(+), 12 deletions(-)
>>
>>
>> The reason appears to be wrong bit mask usage
>>
>> #define ADD_CACHE_IGNORE_ERRORS    4
>> and
>> #define HASH_RENORMALIZE  4
>>
>> Looks like a regression since 2.16.0 - 9472935d81eaf9faed771878c9df0216ae0d9045
>
> Thanks for a very clear report! The patch below should fix it.
...
Thanks for cleaning up my mess
Previous: Jeff KingNext: SZEDER Gábor
Message 4 of 6 in “git add —ignore-errors causes --renormalize”
  1. Dmitriy SmirnovJan 17, 2019
  2. Jeff KingJan 17, 2019
  3. Jeff KingJan 17, 2019
  4. Torsten BögershausenJan 19, 2019
  5. SZEDER GáborJan 29, 2019
  6. Jeff KingJan 29, 2019

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.