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

Re: `--ancestry-path` documentation has wrong graph

From
Elijah Newren <newren@gmail.com>
Date
Mar 14, 2025, 17:16 UTC
Message-ID
<CABPp-BHPAEcJibTaiMVE1K7AvYE+TYmOt7=6XUtcZbm7wsWhDQ@mail.gmail.com>
In-Reply-To
<CANrWfmRq=7Q=vCPgmcLcek=fRsw83BPqTX7gTpcLb=JpQpYZEw@mail.gmail.com>
On Thu, Mar 13, 2025 at 2:04 PM Han Jiang <jhcarl0814@gmail.com> wrote:
Show 5 quoted lines
>
> Git - git-log Documentation --ancestry-path[=<commit>]
> https://git-scm.com/docs/git-log#Documentation/git-log.txt---ancestry-pathltcommitgt-1
>
> The graph for `--ancestry-path=H D..M` should contain commit C.

Indeed; D..H contains C, and C is an ancestor of H. I apparently overlooked C in that example when writing that documentation. Would you like to submit a patch, or would you like me to do so and record you as the reporter? I'm fine with either, but if you want to give it a try, the relevant file is Documentation/rev-list-options.adoc in the repository.

Previous: Han JiangNext: Han Jiang
Message 2 of 7 in “`--ancestry-path` documentation has wrong graph”
  1. Han JiangMar 13, 2025
  2. Elijah NewrenMar 14, 2025
  3. Han JiangMar 15, 2025
  4. Elijah NewrenMar 15, 2025
  5. D. Ben KnobleMar 15, 2025
  6. Han JiangMar 15, 2025
  7. Han JiangMar 16, 2025

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.