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

Re: [RFC] Git rerere and non-conflicting changes during conflict resolution

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 25, 2017, 20:40 UTC
Message-ID
<xmqqk22wuu5g.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqo9s8uuth.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 10 quoted lines
> To populate the database, we'd need a reverse.
> ...
>  * Then the user tells Git that semantic conflicts were resolved and
>    need to be recorded (just like running "git rerere" manually,
>    before "git commit" automatically does it for them these days).
>    This will result in the following:
>
>    - The database is updated so that key <A, B> yields the
>      "merge-fix" commit;
> ...

I probably should have been aiming for stars, as I were outlining the ideal merge-fix logic. The key <A, B> is merely a default, and the worst one at that. There should be a way for the user to tell which exact pair of commits (i.e. another side branch that was merged earlier to the mainline A that renamed 'xyzzy' to 'frotz' wholesale, and the exact commit on the side branch B that added an extra mention of 'xyzzy').

If the logic can figure out what these two commits are without user's help, mechanically by only looking at the merge-fix commit, that would be even better. But I do not believe in miracles, so...

Previous: Junio C HamanoNext: Jeff King
Message 6 of 10 in “[RFC] Git rerere and non-conflicting changes during conflict resolution”
  1. Raman GuptaJul 25, 2017
  2. Jeff KingJul 25, 2017
  3. Raman GuptaJul 25, 2017
  4. Jeff KingJul 25, 2017
  5. Junio C HamanoJul 25, 2017
  6. Junio C HamanoJul 25, 2017
  7. Jeff KingJul 25, 2017
  8. Junio C HamanoJul 26, 2017
  9. Junio C HamanoJul 27, 2017
  10. Junio C HamanoJul 26, 2017

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.