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

Git log --tags isn't working as expected

From
RJRichard Jones <richardj@backbase.com>
Date
Aug 2, 2017, 07:41 UTC
Message-ID
<CACq05g+4HH9L_fiFLR8php=w5JkqB0792SzR9EZU-o+QHuoM8A@mail.gmail.com>
Hi,

I’m trying to locate a commit which takes place after another one, matches a certain tag, and is by a specific user. I have the following command:

git log <COMMIT_ID>..HEAD --decorate --author=“<AUTHOR>" --tags=“project-name”
The tag follows the format: project-name-version

How ever this doesn’t seem to work, as it returns all the commits by that user since the commit ID supplied.

There is also another tag, the release version which follows the format: x.y.z. I have tried searching for this, using:

git log --tags=“x.y.z”

But it returns all the commits, not just a specific one. The tag I am searching for is returned by: git tag

My understanding from the docs (https://git-scm.com/docs/git-log#git-log---tagsltpatterngt) is that git log should only return matches to the —tags argument pattern.

I have tried using git version 2.11.0 (Apple Git-81) and version 2.13.3.

Cheers, Rich

Next: Jeff King
Message 1 of 6 in “Git log --tags isn't working as expected”
  1. Richard JonesAug 2, 2017
  2. Jeff KingAug 2, 2017
  3. Junio C HamanoAug 2, 2017
  4. Jeff KingAug 2, 2017
  5. Junio C HamanoAug 2, 2017
  6. Jeff KingAug 2, 2017

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.