Re: symmetric difference with --left-only vs. range notation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 13, 2025, 21:40 UTC
- Message-ID
- <xmqq8qjmc33y.fsf@gitster.g>
- In-Reply-To
- <CALnO6CBOWTCd-cREfGYL8DPPd=S-s3Y6s0cgwvBzCJZr6E6hvA@mail.gmail.com>
"D. Ben Knoble" <ben.knoble@gmail.com> writes:
Show 8 quoted lines
> git rev-list --count --left-only @{u}...
> git rev-list --count ..@{u}
>
> In my estimation, since we're not using --cherry-pick here, the first
> says "list (count) the commits on upstream but not in HEAD, since the
> merge-base (which is reachable from both)" while the second says "list
> (count) the commits on upstream but not in HEAD." Is there ever a
> situation where those sets aren't the same?I don't think of any; let us know when you find a case that the above does not hold true ;-).