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

Re: equal-tree-merges as way to make rebases fast-forward-able

From
BLBernhard R. Link <brlink@debian.org>
Date
Nov 30, 2009, 16:22 UTC
Message-ID
<20091130162229.GA3792@pcpool00.mathematik.uni-freiburg.de>
In-Reply-To
<hf0oh0$elj$1@ger.gmane.org>
* Paolo Bonzini <bonzini@gnu.org> [091130 16:32]:
Show 6 quoted lines
> On 11/30/2009 03:43 PM, Bernhard R. Link wrote:
>> The itch this idea is supposed to scratch is the problem that a rebase
>> or a amended commit is no longer a fast-forward, so cannot be easily
>> pulled.
>
> How does this compare with topgit?

It's not easily compareable as having different aims, but I think there are some use-cases where this allows native usage of git where previously the best bet was topgit.

Assume for example you want to maintain a set of patches of some upstream, which you want to have in some form relative to upstream and in patches easily reviewable and pickable by other people.

You could do that with topgit by making each change a topgit branch. But to clone that repository then you would need topgit to get all the information and cherry picking one of your changes (that perhaps grow with the time, was adapted to new upstreams and had bugs fixed) needs telling topgit to combine the changes of that branch and use that instead of a simple cherry pick.

With this equal-tree-marker you can just do a git rebase --eqt or git rebase -i --eqt and both have a history with your changes as single commits which are easy to look at (and you can just pushing head^1 somewhere for upstream to pull from) while still having all the history in your git archive so someone else can look what actually happened or just clone your current head and repeatenly pull from it.

Hochachtungsvoll,
	Bernhard R. Link
Previous: Paolo BonziniNext: Michael J Gruber
Message 12 of 29 in “equal-tree-merges as way to make rebases fast-forward-able”
  1. Bernhard R. LinkNov 30, 2009
  2. 1/7 add new command git equal-tree-markerBernhard R. Link, Nov 30, 2009
  3. Michael J GruberNov 30, 2009
  4. 2/7 add option to only visit the first parent of a equal tree mergeBernhard R. Link, Nov 30, 2009
  5. 3/7 format-patch defaults to --first-equal-tree-onlyBernhard R. Link, Nov 30, 2009
  6. 4/7 support equal tree merges in interactive rebaseBernhard R. Link, Nov 30, 2009
  7. 5/7 make rebase -m equal tree marker awareBernhard R. Link, Nov 30, 2009
  8. 6/7 add support for creating equal tree markers after rebaseBernhard R. Link, Nov 30, 2009
  9. 7/7 add support for creating equal tree markers to rebase -iBernhard R. Link, Nov 30, 2009
  10. Sverre RabbelierNov 30, 2009
  11. Paolo BonziniNov 30, 2009
  12. Bernhard R. LinkNov 30, 2009
  13. Michael J GruberNov 30, 2009
  14. Michael J GruberNov 30, 2009
  15. Bernhard R. LinkNov 30, 2009
  16. Johannes SchindelinNov 30, 2009
  17. Junio C HamanoNov 30, 2009
  18. Bernhard R. LinkNov 30, 2009
  19. Junio C HamanoDec 1, 2009
  20. Johannes SixtNov 30, 2009
  21. Junio C HamanoNov 30, 2009
  22. Nanako ShiraishiNov 30, 2009
  23. Junio C HamanoDec 1, 2009
  24. git-merge: a deprecation notice of the ancient command line syntaxJunio C Hamano, Dec 1, 2009
  25. Nicolas PitreDec 1, 2009
  26. Junio C HamanoDec 1, 2009
  27. Nanako ShiraishiDec 2, 2009
  28. Junio C HamanoDec 2, 2009
  29. Michael HaggertyDec 1, 2009

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.