Re: [PATCH v2 0/4] Deprecate "not allow as-is commit with i-t-a entries"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 8, 2012, 17:34 UTC
- Message-ID
- <7v8vkdz0sg.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CACsJy8DSM3kPXJ4oYexCLs5qp6YdZ4Mf9RrGo78a0tHkRaTe4g@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 8 quoted lines
> 2012/2/7 Junio C Hamano <gitster@pobox.com>: >> But when I said "let's admit that this is just fixing an UI mistake, no >> configuration, no options", I really meant it. Without the backward >> compatiblity "For now please do not fix this bug for me and keep being >> buggy until I get used to the non-buggy behaviour" fuss, which we never do >> to any bugfix. > > Ahh I missed something again. Your patch looks good too.
Ok, the strategy part is now behind us, but I have this slight suspicion (I didn't look at the code nor tried it out myself---I don't have time to do this myself today) that using this codepath might result in a corrupt cache-tree, whose entries point at a section of the index it covers as a subtree of the whole project but with incorrect counters or something like that. It would be good to make sure this "just ignoring i-t-a" is doing the right thing not to the resulting commit, but in the resulting index as well, before we go forward with this change.