Re: overly smart rebase - bug or feature?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <Roman.Shaposhnick@...>, <git@...>
Date: Monday, November 10, 2008 - 7:36 pm

On Mon, Nov 10, 2008 at 03:14:42PM -0800, Junio C Hamano wrote:

But cherry-pick does fail, as shown in my original mail!


Well, my history is exactly that, not pseudo (and I dont quite follow your reasoning
yet to understand whether this is important or not):

   A   B
    \ /
     A^

A^ *is* a common ancestor of both A and B.


My history did not rename Makefile.
There were three identical Makefiles (in A^)
After that one was deleted (in B).
On alternative branch it was edited (in A).

If I do *merge* A into B then it fails.
If I do *cherry-pick* A into B then it fails.
If I do *rebase* A onto B then it succeeds.


There was no rename. There was a copy in initial commit (and you cant say if it
was Makefile copied into Makefile2 or vice verse).
I dont believe it should really be called "rename", even if one of the copies was killed later.


In this given case both Makefile1 and Makefile2 were absolutely equal. 
If rebase chose to edit Makefile2 why didnt it change Makefile1?


Yeah, it worked.
...
CONFLICT (delete/modify): Makefile deleted in master and modified in HEAD~0. Version HEAD~0 of Makefile left in tree.
...

Though it does make me wonder why *simplified* 3-way merge is smarter than git merge ;)))

best regards,
  Fedor..
--
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:
overly smart rebase - bug or feature?, Fedor Sergeev, (Mon Nov 10, 5:23 pm)
Re: overly smart rebase - bug or feature?, Junio C Hamano, (Mon Nov 10, 7:14 pm)
Re: overly smart rebase - bug or feature?, Fedor Sergeev, (Wed Nov 12, 5:39 pm)
Re: overly smart rebase - bug or feature?, Junio C Hamano, (Wed Nov 12, 6:04 pm)
Re: overly smart rebase - bug or feature?, Fedor Sergeev, (Mon Nov 10, 7:36 pm)
Re: overly smart rebase - bug or feature?, Junio C Hamano, (Mon Nov 10, 7:57 pm)
Re: overly smart rebase - bug or feature?, Avery Pennarun, (Mon Nov 10, 7:31 pm)