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

Re: Current state / standard advice for rebasing merges without information loss/re-entry?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 18, 2022, 16:41 UTC
Message-ID
<xmqq35iaz6n3.fsf@gitster.g>
In-Reply-To
<ba1ea459-5981-5972-36e6-913eb19c34b4@iee.email>
Philip Oakley <philipoakley@iee.email> writes:
> So, essentially, it's talking a small part of the rerere-train at each
> step in the replay, so that it's more focussed.

As rerere database is designed to be an O(1) hashtable, having knowledge of how many other merge conflicts are to be resolved shouldn't affect the time you need to find the relevant record to use to help you resulve the conflict you currently see.

That reminds me of one topic. I often wondered if it were a mistake that I didn't make the rerere database easily transferrable across repositories (just like "stash cannot be transport via fetch" which is being worked on recently). As long as a mergy history that will need to be recreated later gets transferred to a new repository, it can be used to "train" the rerere database in the new repository, so it probably is a much lower priority.

"git rerere" command on the other hand may be in desperate need to learn the "train" subcommand to officially support it (and deprecate the "contrib/rerere-train.sh"). Especially given that we now can do the necessary "trial merges" in core, without touching the working tree or the index, thanks to the "ort" merge-backend.

The size of such a project may be appropriate for GSoC (if done the same way as the script, smudging HEAD, index and the working tree), or may exceed what is reasonable for GSoC (if done all in-core using ort machinery).

Previous: Philip OakleyNext: Martin von Zweigbergk
Message 5 of 14 in “Current state / standard advice for rebasing merges without information loss/re-entry?”
  1. Tao KlerksApr 18, 2022
  2. Philip OakleyApr 18, 2022
  3. Junio C HamanoApr 18, 2022
  4. Philip OakleyApr 18, 2022
  5. Junio C HamanoApr 18, 2022
  6. Martin von ZweigbergkApr 19, 2022
  7. Junio C HamanoApr 20, 2022
  8. Martin von ZweigbergkApr 20, 2022
  9. Sergey OrganovApr 18, 2022
  10. Martin von ZweigbergkApr 19, 2022
  11. Sergey OrganovApr 19, 2022
  12. Martin von ZweigbergkApr 19, 2022
  13. Tao KlerksApr 19, 2022
  14. Martin von ZweigbergkApr 19, 2022

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.