RE: Regression in git-subtree.sh, introduced in 2.20.1, after 315a84f9aa0e2e629b0680068646b0032518ebed
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 3, 2019, 13:50 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1901031448260.45@tvgsbejvaqbjf.bet>
- In-Reply-To
- <59718f73a0a14b828a6d4fd4c8c222d1@MBX260.adm.swri.edu>
Hi Roger,
On Wed, 2 Jan 2019, Strain, Roger L. wrote:
> TL;DR: Current script uses git rev-list to retrieve all commits which > are reachable from HEAD but not from <abc123>. Is there a syntax that > will instead return all commits reachable from HEAD, but stop traversing > when <abc123> is encountered? It's a subtle distinction, but important.
Maybe you are looking for the --ancestry-path option? Essentially, `git rev-list --ancestry-path A..B` will list only commits that are reachable from B, not reachable from A, but that *can* reach A (i.e. that are descendants of A).
Ciao, Johannes