From: Junio C Hamano Date: Wed, 08 Feb 2012 17:34:55 GMT Subject: Re: [PATCH v2 0/4] Deprecate "not allow as-is commit with i-t-a entries" Message-ID: <7v8vkdz0sg.fsf@alter.siamese.dyndns.org> In-Reply-To: Nguyen Thai Ngoc Duy writes: > 2012/2/7 Junio C Hamano : >> 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.