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

Re: [RFC] introducing git replay

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 13, 2022, 17:05 UTC
Message-ID
<xmqq4k2wap8g.fsf@gitster.g>
In-Reply-To
<20220413164336.101390-1-eantoranz@gmail.com>
Edmundo Carmona Antoranz <eantoranz@gmail.com> writes:
> This is a RFC because:
> - Perhaps it is already possible to do it with git rebase
>   to achieve the same? But I haven't seen a recipe that
>   gets it done in stackoverflow, at least.

Without thinking about it too much, out of gut reaction, it looks like a better target for fast-export piped to fast-import than rebase or amend, if all it can do is to replay on _identical_ state and nothing else.

> Let me know what you think.
> Interesting? Not?

If this _were_ to allow some slight deviations of the base and carry the differences forward, then it definitely belongs to rebase, and perhaps "rebase --replay-merges" should be taught to behave better without introducing a new option. But otherwise, I do not think it is all that useful.

Also, if this _were_ to allow recreating the shape of the history, using updated tips of branches that were merged in the original history, perhaps taking hints from "Merge branch X into Y" in the original merge commit's log messages, that would be quite useful addition to the rebase mechanism, but this is not that.

So, not really, to me at least.
Previous: Edmundo Carmona AntoranzNext: Edmundo Carmona Antoranz
Message 2 of 25 in “[RFC] introducing git replay”
  1. Edmundo Carmona AntoranzApr 13, 2022
  2. Junio C HamanoApr 13, 2022
  3. Edmundo Carmona AntoranzApr 15, 2022
  4. Junio C HamanoApr 15, 2022
  5. Edmundo Carmona AntoranzApr 16, 2022
  6. Junio C HamanoApr 16, 2022
  7. Edmundo Carmona AntoranzApr 16, 2022
  8. Elijah NewrenApr 17, 2022
  9. Edmundo Carmona AntoranzApr 17, 2022
  10. Martin von ZweigbergkApr 17, 2022
  11. Edmundo Carmona AntoranzApr 18, 2022
  12. Sergey OrganovApr 18, 2022
  13. Elijah NewrenApr 18, 2022
  14. Sergey OrganovApr 18, 2022
  15. Tao KlerksApr 20, 2022
  16. Elijah NewrenApr 21, 2022
  17. rsbecker@nexbridge.comApr 13, 2022
  18. Edmundo Carmona AntoranzApr 13, 2022
  19. Edmundo Carmona AntoranzApr 13, 2022
  20. Phillip SusiApr 13, 2022
  21. Edmundo Carmona AntoranzApr 13, 2022
  22. Ævar Arnfjörð BjarmasonApr 13, 2022
  23. Junio C HamanoApr 13, 2022
  24. Edmundo Carmona AntoranzApr 13, 2022
  25. Eric SunshineApr 13, 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.