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

Re: MERGE_RR droppings

From
Phil Hord <phil.hord@gmail.com>
Date
Jun 25, 2012, 18:36 UTC
Message-ID
<CABURp0rBRnFjJaXO3BUYWcyXEAsLZeEv05z-hMi8aW9SPTCPqA@mail.gmail.com>
In-Reply-To
<7v8vfk2pby.fsf@alter.siamese.dyndns.org>
On Mon, Jun 18, 2012 at 7:05 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> Phil Hord <phil.hord@gmail.com> writes:
>
>> git mergetool decides to use rerere-remaining based on the existence
>> of the .git/MERGE_RR file:
>>
>>     if test -e "$GIT_DIR/MERGE_RR"
>
> This is correct, I would probably write it with "test -f" if I were
> writing this line today, though.  After you commit to conclude the
> merge, the MERGE_RR marker should disappear.  Isn't it happening for
> you?
I was able to isolate this today to cherry-pick.

When I successfully cherry-pick a change (no conflicts, no merges), I get a .git/MERGE_RR file left over. After this happens, git-mergetool will think there are no unresolved conflicts unless git (or I) first removes the .git/MERGE_RR.

Maybe this only causes trouble for 'git stash apply' since it does not employ rerere machinery, or because it takes some other code path which does not begin by removing .git/MERGE_RR.

A naive fix would be to remove MERGE_RR at the conclusion of 'stash-apply', but I do not think that is the right place for it to go.

Suggestions?
Phil
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 11 in “Re: MERGE_RR droppings”
  1. Phil HordJun 18, 2012
  2. Junio C HamanoJun 18, 2012
  3. Phil HordJun 25, 2012
  4. Junio C HamanoJun 25, 2012
  5. David AguilarJun 26, 2012
  6. Junio C HamanoJun 26, 2012
  7. Junio C HamanoJun 26, 2012
  8. Phil HordJun 26, 2012
  9. David AguilarJul 1, 2012
  10. Junio C HamanoJul 2, 2012
  11. Phil HordJul 2, 2012

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.