Re: Should "pull --rebase" try to be a little cleverer?
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jan 21, 2008, 16:03 UTC
- Message-ID
- <alpine.LFD.1.00.0801211054320.20753@xanadu.home>
- In-Reply-To
- <alpine.LSU.1.00.0801211542150.5731@racer.site>
On Mon, 21 Jan 2008, Johannes Schindelin wrote:
Show 6 quoted lines
> Hi, > > last night an idea hit me: if I "git pull --rebase blabla master", it > could be that "blabla" decided to rebase "master" already, and ATM this > would lead to quite a few conflicts, since commits that were not mine were > rewritten.
Indeed.
> However, if we already have refs/remotes/blabla/master, we could DWIM the > --rebase call to > > git rebase --onto FETCH_HEAD refs/remotes/blabla/master
I was believing this was already the case. Mind you, I never verified it.
I think the best is really to have the equivalent of:
git fetch blabla/master
git rebase --onto blabla/master blabla/master@{1} HEADNicolas