git add —ignore-errors causes --renormalize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux