git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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"
Next: Junio C Hamano
Message 1 of 3 in “How to exclude tagged commits from git log <revision-range>?”
  1. M HickfordJun 25, 2025
  2. Junio C HamanoJun 25, 2025
  3. Jacob KellerJun 25, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.