Re: overly smart rebase - bug or feature?

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

Fedor Sergeev <Fedor.Sergeev@Sun.COM> writes:


Simplified one is not _smarter_.  It is merely _faster_, exactly because
it only looks at the paths between A^..A and nothing else.

And that is why it cannot tell between the case where both A^ and A have
Makefile2 or they both lack it.  And that is exactly why application of
this change on top of B is mistaken as a patch to a renamed path.  From
B's point of view:

 - Incoming change says "I changed Makefile from this shape to that
   shape", and nothing else;

 - B does not have Makefile, but it happens to have the contents at path
   Makefile2 that is identical to the preimage of that incoming change.

which makes it guess (when falling back to 3-way merge) that somewhere
leading to B what used to be at Makefile (which is what the incoming
change claims to change) may have been renamed to Makefile2 (because B
does not have Makefile but does have it).
--
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)