Re: [PATCH] read-cache.c: Ensure unmerged entries are removed
- From
Jaime Soriano Pastor <jsorianopastor@gmail.com>
- Date
- Aug 18, 2014, 17:23 UTC
- Message-ID
- <CAPuZ2NFqR67LA=eeDQVJsm_vGAHHGBy2hVNugrovzCS_kzXtMg@mail.gmail.com>
- In-Reply-To
- <xmqqppfxycxj.fsf@gitster.dls.corp.google.com>
Yes, --index-info worked for this purpouse, thanks!
https://github.com/jsoriano/git/blob/remove-unmerged-index-entry/t/t9904-unmerged-file-with-merged-entry.sh#L25
I'll try to send the patches to the mailing lists later today or tomorrow.
On Mon, Aug 18, 2014 at 6:34 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Jaime Soriano Pastor <jsorianopastor@gmail.com> writes: > >> I'd like to add some tests too for this, but I don't know how to >> reproduce this state with git commands only, is there any way to add >> entries to the index without checkings? > > Perhaps feeding "update-index --index-info" four input lines would work?