Re: Specifying revisions in the future
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Feb 6, 2012, 12:27 UTC
- Message-ID
- <m2y5sg6ta5.fsf@igel.home>
- In-Reply-To
- <vpq62fk89x1.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 7 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes: > >> The rule should be to follow the leftmost parent as far as possible. > > But then, if --first-parent doesn't reach the commit you want, there may > be several paths not following --first-parent that reach it. And you'll > have to invent some more rules to order them.
The leftmost parent is not necessarily the first parent, but the leftmost parent that still reaches the commit. It's a depth-first search: if following the first parent doesn't reach the commit any more, try again with the second parent.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."