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

Re: rebasing merges

From
Andreas Ericsson <ae@op5.se>
Date
Sep 23, 2008, 08:06 UTC
Message-ID
<48D8A371.4030909@op5.se>
In-Reply-To
<2008-09-23-09-30-47+trackit+sam@rfc1149.net>
Samuel Tardieu wrote:
Show 6 quoted lines
> 
> Btw, would it be a good idea to unconditionally enable "rerere"
> conflict resolution *recording*, and add an option to "rebase" and
> "merge" to use "rerere" even when it is not enabled in the
> configuration file? I can't think of any drawback.
> 

I'm all for that. I actually thought (4 months ago) that that was how it worked.

It would be a backwards incompatible change though, as we currently fall back to "does rr-cache exist?" to determine if rerere is enabled in case it isn't explicitly so in the configuration. Perhaps print a warning if !rerere.enabled but $GIT_DIR/rr-cache exists. OTOH, that will create a lot of warnings since we'd have to create that rr-cache directory to record the resolutions.

To maintain backwards compatibility, we could ofcourse do like this;
* move rr-cache to rere ("recorded resolutions"; bikeshed color goes here)
* if rr-cache exists, implicitly enable rerere
* if rr-cache holds resolutions when setting up rerere, move them
  to rere
OR
* look for resolutions in both rr-cache and rere indefinitely.

It's not exactly performance critical, so swapping the pattern from O(n) (or whatever it is now) to O(2n) for replaying resolutions probably won't make that much of a difference.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Johannes SixtNext: Stephen Haberman
Message 6 of 14 in “rebasing merges”
  1. Stephen HabermanSep 22, 2008
  2. Stephen HabermanSep 23, 2008
  3. Johannes SixtSep 23, 2008
  4. Samuel TardieuSep 23, 2008
  5. Johannes SixtSep 23, 2008
  6. Andreas EricssonSep 23, 2008
  7. Stephen HabermanSep 23, 2008
  8. Johannes SixtSep 23, 2008
  9. Andreas EricssonSep 23, 2008
  10. Stephen HabermanSep 23, 2008
  11. Andreas EricssonSep 23, 2008
  12. Stephen HabermanSep 23, 2008
  13. Stephen HabermanSep 23, 2008
  14. SZEDER GáborSep 23, 2008

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.