Re: [PATCH 1/3] Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 10, 2016, 23:08 UTC
- Message-ID
- <xmqqh98jby5d.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8DiGoaKZZ1je=3L3y4odVHB7wLvvKs9pccjiN=-UeqeVw@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> Off topic. This reminds me of an old patch about apply and ita [1] but > that one is not the same here
... Yeah, and re-reading that one, I think that sort-of makes sense. I am hesitant to take it out of context, though. I wonder how it would interact with that broken mode of "git apply" where it can take patches to the same path number of times...
> [1] https://public-inbox.org/git/1451181092-26054-4-git-send-email-pclouds@gmail.com/
>> ita entry in the index for symmetry, wouldn't it? That by itself >> can be seen as an improvement (we no longer would have to say that >> "git apply patchfile && git commit -a" that is run in a clean state >> will forget new files the patchfile creates), but it also means ...
Another downside is that "git reset --hard" after "git apply" will suddenly start removing them. Perhaps that can be seen a feature? I dunno.