Re: [PATCH] Adding rebase merge strategy

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Tom Clarke <tom@...>, Junio C Hamano <gitster@...>, <Johannes.Schindelin@...>, <git@...>
Date: Monday, October 1, 2007 - 6:53 pm

On Mon, 1 Oct 2007 18:30:50 -0400, "Shawn O. Pearce" wrote:

Ah, "pull.twohead". I don't think I ever would have guessed that. (And
I was just about to ask if there was a nice place to find all these
options, but then found it myself on my first guess with "man
git-config". Thanks everyone for writing that!).


Sure. Rebase alone isn't useful as a complete merge strategy. But a
rebase strategy that simply fails in the face of a conflict,
(deferring to a subsequent merge strategy), could be very useful.


Yes, I thought I recalled seeing a rebase strategy go by in the past,
but I had never gotten around to trying it out. I'll try to do better
on this try.


Yes, this sounds exactly like what I want. So, I put "rebase
recursive" in place as the value for the pull.twohead configuration?
An then make sure that the rebase strategy aborts as "failed" instead
of "conflicted and left for user to resolve"? I saw Junio talking
about return values up above in the thread but didn't pay attention to
details, (2 vs. 1 or something)?

Has anyone tried this rebase then recursive strategy yet? I'm
definitely interested in trying it out, as I think I'd
find it quite nice as a default for pull in my usage.

Though actually I'd like it even more if there was some way to mark a
commit as having been "published" and the rebase strategy would refuse
to rebase published commits. Maybe that's a per-branch
"last-published" reference? I think I'd even like git-push to update
the last-published reference for each pushed branch by default, but
then perhaps have an option to mark a particular remote so that
pushing to that remote doesn't count as publishing.

-Carl
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Adding rebase merge strategy, Tom Clarke, (Fri Sep 28, 12:15 pm)
Re: [PATCH] Adding rebase merge strategy, Johannes Schindelin, (Fri Sep 28, 1:03 pm)
[PATCH] Adding rebase merge strategy, Tom Clarke, (Mon Oct 1, 11:08 am)
Re: [PATCH] Adding rebase merge strategy, Junio C Hamano, (Mon Oct 1, 5:01 pm)
Re: [PATCH] Adding rebase merge strategy, Tom Clarke, (Mon Oct 1, 5:41 pm)
Re: [PATCH] Adding rebase merge strategy, Junio C Hamano, (Mon Oct 1, 6:28 pm)
Re: [PATCH] Adding rebase merge strategy, Carl Worth, (Mon Oct 1, 6:17 pm)
Re: [PATCH] Adding rebase merge strategy, J. Bruce Fields, (Mon Oct 1, 7:09 pm)
Re: [PATCH] Adding rebase merge strategy, Tom Clarke, (Mon Oct 1, 6:21 pm)
Re: [PATCH] Adding rebase merge strategy, Shawn O. Pearce, (Mon Oct 1, 6:30 pm)
Re: [PATCH] Adding rebase merge strategy, Johannes Schindelin, (Tue Oct 2, 6:00 am)
Re: [PATCH] Adding rebase merge strategy, Tom Clarke, (Tue Oct 2, 6:29 am)
Re: [PATCH] Adding rebase merge strategy, Junio C Hamano, (Tue Oct 2, 2:40 pm)
Re: [PATCH] Adding rebase merge strategy, Tom Clarke, (Wed Oct 3, 10:11 am)
Re: [PATCH] Adding rebase merge strategy, Johannes Schindelin, (Wed Oct 3, 11:54 am)
Re: [PATCH] Adding rebase merge strategy, Carl Worth, (Mon Oct 1, 6:53 pm)
Re: [PATCH] Adding rebase merge strategy, Junio C Hamano, (Mon Oct 1, 7:11 pm)
Re: [PATCH] Adding rebase merge strategy, Johannes Schindelin, (Mon Oct 1, 11:50 am)
Re: [PATCH] Adding rebase merge strategy, Tom Clarke, (Fri Sep 28, 1:18 pm)