git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git rerere forget isn't working?

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Jan 13, 2015, 13:39 UTC
Message-ID
<CAHd499AS4q4wvSDAnaiZ9qo2C7Br3rmnrTBtDv-YgQn_=zJPnA@mail.gmail.com>
In-Reply-To
<xmqq7fwrambo.fsf@gitster.dls.corp.google.com>
On Mon, Jan 12, 2015 at 12:24 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 22 quoted lines
> Robert Dailey <rcdailey.lists@gmail.com> writes:
>
>> So I want a way to clear out the whole rerere cache (i.e. every
>> remembered conflict resolution). So I try this command:
>>
>> $ git rerere forget .
>
> The forget subcommand is to tell Git that you screwed up in this
> sequence:
>
>     $ git merge other ;# or any "mergy" operation that leaves conflict
>     $ edit foo ;# help Git resolve conflicts
>     $ git rerere foo ;# and tell it to remember
>     ... and then later find that your earlier resolution was wrong
>     $ git rerere forget foo
>
> The "dot" there may mean "all paths", but it is still "all paths I
> resolved for this particular set of conflicts the "mergy" operation
> produced.  There is no "I do not care if there are good resolutions
> remembered that do not have anything to do with the current merge,
> just remove all of them"---that is what "rm -fr .git/rr-cache" is
> for.

So to be clear, `rerere forget` is for use prior to `merge --abort` then? I have the global config option set to make rebase and merge automatically record to rr cache (forgetting the name ATM but you should know what I'm talking about). I didn't see it documented that it's safe/recommended to manually delete rr-cache directory, so I wasn't sure if that was a valid solution.

Thanks for the information it has been helpful.
Previous: Junio C Hamano
Message 3 of 3 in “git rerere forget isn't working?”
  1. Robert DaileyJan 12, 2015
  2. Junio C HamanoJan 12, 2015
  3. Robert DaileyJan 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.