How to exclude tagged commits from git log <revision-range>?
- From
M Hickford <mirth.hickford@gmail.com>
- Date
- Jun 25, 2025, 20:30 UTC
- Message-ID
- <CAGJzqskFuQqLHgFk97S9uaBB=iW2Ni=NWokHJzMV5rYGsCOG4g@mail.gmail.com>
Hi. Is it possible to exclude tagged commits from a revision range?
I tried
git log --exclude=ref/tags/v* v2.3.0..v2.4.0
but this didn't exclude any commits.
An inelegant workaround is:
git log --oneline --decorate v2.3.0..v2.4.0 | grep --invert-match "tag: v"