Re: How to exclude tagged commits from git log <revision-range>?
- From
Jacob Keller <jacob.e.keller@intel.com>
- Date
- Jun 25, 2025, 21:26 UTC
- Message-ID
- <0595f247-745f-4d57-9d20-4c2065b6c902@intel.com>
- In-Reply-To
- <CAGJzqskFuQqLHgFk97S9uaBB=iW2Ni=NWokHJzMV5rYGsCOG4g@mail.gmail.com>
On 6/25/2025 1:30 PM, M Hickford wrote:
Show 12 quoted lines
> 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" >
What is your actual end goal with this git log? Why do you want to not see tag commits?
I think your "inelegant" solution may be the only way to get what you want.