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

git add —ignore-errors causes --renormalize

From
DSDmitriy Smirnov <dmitriy.smirnov@jetbrains.com>
Date
Jan 17, 2019, 15:22 UTC
Message-ID
<401130AF-056B-40BF-8001-8492223B8A6B@jetbrains.com>
Hello,
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
Next: Jeff King
Message 1 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.