Re: [PATCH] Simplify and fix --first-parent implementation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen R. van den Berg <srb@...>
Cc: <git@...>
Date: Friday, April 25, 2008 - 8:11 pm

"Stephen R. van den Berg" <srb@cuci.nl> writes:


No explanation of what the patch does, nor justification of why it is a
good change?

Please also sign your patch.


The original code makes sure all the parents of the given commits are
marked as SEEN (and SYMMETRIC_LEFT if needed), even when only it traverses
the first parent.  By leaving the loop early, you are changing the
semantics of the code.  Other parents, when reached from other paths while
traversing the commit ancestry chain, will behave differently between the
version with your patch and without.

You would need to explain how and why that behaviour change is a "fix" in
the proposed commit log message.  "Before the change, traversing a history
of this shape behaves like this, but that is wrong for such and such
reasons, and I identified the culprit to be this code.  With this patch,
the same traversal will instead behave this way, which is what I expect to
be the right behaviour".

--
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:
[PATCH] Simplify and fix --first-parent implementation, Stephen R. van den Berg, (Fri Apr 25, 2:10 pm)
Re: [PATCH] Simplify and fix --first-parent implementation, Junio C Hamano, (Fri Apr 25, 8:11 pm)
Re: [PATCH] Simplify and fix --first-parent implementation, Stephen R. van den Berg, (Sat Apr 26, 7:59 am)
Re: [PATCH] Simplify and fix --first-parent implementation, Junio C Hamano, (Sat Apr 26, 3:13 pm)