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.