git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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."
Previous: Matthieu MoyNext: Andreas Schwab
Message 13 of 16 in “Specifying revisions in the future”
  1. jpaugh@gmx.usFeb 4, 2012
  2. Jakub NarebskiFeb 5, 2012
  3. Matthieu MoyFeb 5, 2012
  4. Andreas SchwabFeb 5, 2012
  5. Jakub NarebskiFeb 5, 2012
  6. Andreas SchwabFeb 5, 2012
  7. Jakub NarebskiFeb 5, 2012
  8. Philip OakleyFeb 5, 2012
  9. Andreas SchwabFeb 5, 2012
  10. Miles BaderFeb 6, 2012
  11. Jonathan PaughFeb 7, 2012
  12. Matthieu MoyFeb 6, 2012
  13. Andreas SchwabFeb 6, 2012
  14. Andreas SchwabFeb 5, 2012
  15. Junio C HamanoFeb 5, 2012
  16. Jakub NarebskiFeb 5, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.