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

Re: [PATCH] git-rev-list: add --exclude-path-first-parent flag

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 17, 2021, 04:09 UTC
Message-ID
<607a5f701977c_18dc520893@natae.notmuch>
In-Reply-To
<CAMKO5Cutas2BM_CTHTJs_O9NSp2Vyn-bK0jV0K758eq5M6-Oag@mail.gmail.com>
Jerry Zhang wrote:
> My motivation is to find the point at which a release branch forked off from
> a main branch, even though the release branch could have been merged
> into the main branch multiple times since it was forked off.

As far as I'm aware this is precisely the only advantage of Mercurial over Git.

Last time I checked the only way to actually find out the fork point considering multiple corner cases was to directly store it.

Perhaps --exclude-path-first-parent would be a good approximation.
-- 
Felipe Contreras
Previous: Jerry ZhangNext: Junio C Hamano
Message 4 of 9 in “git-rev-list: add --exclude-path-first-parent flag”
  1. git-rev-list: add --exclude-path-first-parent flagJerry Zhang, Apr 17, 2021
  2. Junio C HamanoApr 17, 2021
  3. Jerry ZhangApr 17, 2021
  4. Felipe ContrerasApr 17, 2021
  5. Junio C HamanoApr 17, 2021
  6. Jerry ZhangApr 21, 2021
  7. git-rev-list: add --first-parent-not flagJerry Zhang, Apr 21, 2021
  8. git-rev-list: add --first-parent-not flagJerry Zhang, Jul 28, 2021
  9. Jerry ZhangDec 11, 2021

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.