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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bernhard R. Link
Date: Monday, November 30, 2009 - 11:55 am

* Junio C Hamano <gitster@pobox.com> [091130 19:19]:

I think it rather looks like this:

     3---------------B
     |              /
     | 2-------A---Y
     |/       /
     0---1---X


I think changing it to get this would be easy (though only in the case
where the very last commit was such an equal tree merge), but I do not
think it would be actually better:

- it is no longer possible to see the history of changes by just walking
  right on every equal-tree-merge.
- commit a no longer exists. If some downstream already has
  cloned/pulled, no fast-forward is possible any more.


I've considered adding a new header or only a magic description text for those
commits, but I think it is not necessary.
Because the actual programs making it useful to treat this special
(format-patch producing too many patches, rebases possibly showing conflicts
already resolved and bisect walking too many branches) will be the same when
two branches only resulting in the same tree by pure chance show up.


I think for patch 3 (format-patch) and 4 (rebase -i) it is always better to
have the new behaviour even when only hitting equal trees by chance.
I'm unsure about 5 (rebase -m), but guess it still is.


It already does always create a unique log message. So one could also
have one more strict and one less strict mode (and some option to decide
on the default).

Hochachtungsvoll,
	Bernhard R. Link
-- 
"Never contain programs so few bugs, as when no debugging tools are available!"
	Niklaus Wirth
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
equal-tree-merges as way to make rebases fast-forward-able, Bernhard R. Link, (Mon Nov 30, 7:43 am)
[PATCH 1/7] add new command git equal-tree-marker, Bernhard R. Link, (Mon Nov 30, 7:43 am)
[PATCH 3/7] format-patch defaults to --first-equal-tree-only, Bernhard R. Link, (Mon Nov 30, 7:44 am)
[PATCH 4/7] support equal tree merges in interactive rebase, Bernhard R. Link, (Mon Nov 30, 7:44 am)
[PATCH 5/7] make rebase -m equal tree marker aware, Bernhard R. Link, (Mon Nov 30, 7:45 am)
Re: [PATCH 1/7] add new command git equal-tree-marker, Michael J Gruber, (Mon Nov 30, 8:36 am)
Re: equal-tree-merges as way to make rebases fast-forward-able, Johannes Schindelin, (Mon Nov 30, 10:19 am)
Re: equal-tree-merges as way to make rebases fast-forward-able, Bernhard R. Link, (Mon Nov 30, 11:55 am)