threads / discuss / 17373

rerere: how to remove an erroneous resolution?

Subject: rerere: how to remove an erroneous resolution?

## tl;dr

3 messages between Jan 26, 2009 and Jan 26, 2009.

replies: 2people: 2as markdown or json

SZEDER Gábor· Jan 26, 2009, 14:42 UTC · lore
Hi,

some time ago I mistakenly resolved a merge conflict incorrectly. Of course, rerere noted the erroneous conflict resolution, and whenever the same merge conflict occurs rerere offers me that erroneous conflict resolution, even though I correct it each time.

So, the question is how could I make rerere forget that particular merge conflict resolution? Is it at all possible?

Thanks, Gábor

SZEDER Gábor· Jan 26, 2009, 15:13 UTC · re: SZEDER Gábor · lore

Re: rerere: how to remove an erroneous resolution?

On Mon, Jan 26, 2009 at 03:42:39PM +0100, SZEDER Gábor wrote:
Show 7 quoted lines
> some time ago I mistakenly resolved a merge conflict incorrectly.  Of
> course, rerere noted the erroneous conflict resolution, and whenever
> the same merge conflict occurs rerere offers me that erroneous
> conflict resolution, even though I correct it each time.
> 
> So, the question is how could I make rerere forget that particular
> merge conflict resolution?  Is it at all possible?

Ok, I should have investigated a little longer before sending that email.

I thought that .git/rr-cache contains some kind of sha1-named objects, and did not realize that those are indeed directories with just plaintext pre- and postimage files in it. So, after some grepping I could identify the sought conflict resolution fairly easily, and correct it.

Best, Gábor

Jeff King· Jan 26, 2009, 21:11 UTC · re: SZEDER Gábor · lore

Re: rerere: how to remove an erroneous resolution?

On Mon, Jan 26, 2009 at 04:13:26PM +0100, SZEDER Gábor wrote:
Show 11 quoted lines
> On Mon, Jan 26, 2009 at 03:42:39PM +0100, SZEDER Gábor wrote:
> > some time ago I mistakenly resolved a merge conflict incorrectly.  Of
> > course, rerere noted the erroneous conflict resolution, and whenever
> > the same merge conflict occurs rerere offers me that erroneous
> > conflict resolution, even though I correct it each time.
> > 
> > So, the question is how could I make rerere forget that particular
> > merge conflict resolution?  Is it at all possible?
> 
> Ok, I should have investigated a little longer before sending that
> email.

Hmm. I have never actually used rerere in a real setting, so I am somewhat clueless. But from your description, it sounds like it would make sense for it to update the resolution to the latest one used. If you changed it, it was probably to correct it; you would have no need to make a change to break an already-working resolution.

Then you would not have had to go mucking about in .git.
-Peff

← back to recent threads