Re: Add --rebase option to git-pull?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tom Clarke <tom@...>
Cc: <git@...>
Date: Thursday, August 30, 2007 - 9:07 am

Tom Clarke wrote:

If I read the patch correctly (which I may not, ofcourse), you're
rebasing the upstream changes to on top of your own work. That's
not something you can readily do, since the parentage chain in
git is supposed to be immutable, so mutating the one you get from
an already published source would be a horribly bad idea indeed.

You need to do it the other way around, so that you rebase your
local changes onto the upstream HEAD prior to pushing.

If that's what the patch does, then I guess all is fine and dandy,
although I think it'd be better to add the merge-strategy rebase
or possibly rebase-ours or rebase-theirs, which can be given as
arguments to git-pull.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
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:
Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 8:40 am)
Re: Add --rebase option to git-pull?, Johannes Schindelin, (Thu Aug 30, 9:16 am)
Re: Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 11:10 am)
Re: Add --rebase option to git-pull?, Alex Riesen, (Thu Aug 30, 4:22 pm)
Re: Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 4:36 pm)
Re: Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 4:44 pm)
Re: Add --rebase option to git-pull?, Johannes Schindelin, (Thu Aug 30, 11:23 am)
Re: Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 11:26 am)
Re: Add --rebase option to git-pull?, Andreas Ericsson, (Thu Aug 30, 9:07 am)
Re: Add --rebase option to git-pull?, Tom Clarke, (Thu Aug 30, 9:17 am)