Re: [PATCH v2] revision.c: really honor --first-parent

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Lars Hjemli <hjemli@...>, <nanako3@...>, <git@...>
Date: Wednesday, May 14, 2008 - 6:34 am

Junio C Hamano wrote:




I agree that Lars' patch prevents parts of the tree to go "dark" (so did
my patch).
However, without either patch, that implies that the current --first-parent
code has a high probability of obscuring parts of the tree depending on
traversing order (in any tree which contains at least one merge).

So, I'd say, since the current code does not and cannot work reliably
for anyone specifically using --first-parent (with every merge
encountered, the probability of correctness is multiplied by 0.5 at
most/least), you are going to do them a favour anyway by fixing the code,
then why not simplify the convolution and make the code rock-steady (and
implement my patch)?

Anyone using --first-parent in production now has an embarrassingly high
probability of missing commits in his generated lists (I know that I
noticed the problem within 5 minutes from actually trying to use the
flag to get meaningful output).  So fixing and simplifying the code now
is rather unlikely to create any more surprises than the current code
already presents to existing users (if any).
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg.

What if there were no hypothetical questions?
--
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:
Re: [PATCH v2] revision.c: really honor --first-parent, Junio C Hamano, (Tue May 13, 6:38 pm)
Re: [PATCH v2] revision.c: really honor --first-parent, Stephen R. van den Berg, (Wed May 14, 6:34 am)
Re: [PATCH v2] revision.c: really honor --first-parent, Lars Hjemli, (Wed May 14, 6:54 am)
Re: [PATCH v2] revision.c: really honor --first-parent, Stephen R. van den Berg, (Wed May 14, 7:10 am)