Note that there are some explanatory texts on larger screens.

plurals
  1. POshow all tags in git log
    text
    copied!<p><strong>Why does <code>git log --decorate</code> not display more than one tag per commit?</strong></p> <p><strong>EDIT</strong>: Charles Bailey has come up with the answer (at least in my case)<br> Essentially, I had one tag that pointed to another tag that pointed to the commit. Because of this extra layer of indirection, the tag wasn't showing up in the log. I'll have to fix this, wither by fixing our tagging script to tag correctly, or by some shell script voodoo to recursively follow tags. Anyway, I'll leave this question up just for reference in case anyone wants it. (I'm new to stack overflow, but I assume that is the correct protocol?)</p> <h2>... Original question follows ...</h2> <p>Backstory: We use GIT at work for source control, and we have a policy of always tagging a commit when we deploy. (It's actually a script that does tags, and then pulls the tag on the server). Since it's a web application with separate staging and production servers, we often tag a release for staging (for testing or whatever), and then later tag the same commit for production.</p> <p>So it's actually very often that we have multiple tags on the same commit. It would be very nice to be able to see this in the text log, but it doesn't seem to support it. I'm currently working around the issue by manually checking the tag I'm looking for, or by firing up <code>gitk</code>. While both of these solutions work, it seems to me that it's really weird for <code>git log --decorate</code> to only support one tag per commit by default.</p> <p>I did some googling around, but didn't find much. Am I missing something obvious?</p> <p><em>P.S. (I actually use a custom format string with <code>%d</code>, according to the man pages and some quick tests, it's equivalent to <code>--decorate</code>)</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload