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

[PATCH 0/2] cosmetic improvements for "git show tag"

From
Jeff King <peff@peff.net>
Date
Jul 17, 2009, 23:16 UTC
Message-ID
<20090717231622.GA13511@coredump.intra.peff.net>
Right now, if you do:
  $ git tag -m 'annotated tag message' foo
  $ git show foo
you get:
    tag foo
    Tagger: Jeff King <peff@peff.net>
    Date:   Fri Jul 17 19:10:54 2009 -0400
    annotated tag message
    commit 88c17f18d7f3091508218b36a17cdf0dfd56ae65
    Author: Jeff King <peff@peff.net>
    Date:   Fri Jul 17 19:10:50 2009 -0400
        commit message
    diff ...

which is IMHO quite hard to read. These two one-liner patches improve the output to:

    tag foo
    Tagger: Jeff King <peff@peff.net>
    Date:   Fri Jul 17 19:10:54 2009 -0400
    annotated tag message
    commit 88c17f18d7f3091508218b36a17cdf0dfd56ae65
    Author: Jeff King <peff@peff.net>
    Date:   Fri Jul 17 19:10:50 2009 -0400
        commit message
    diff ...

which I find much more readable. The changes are localized to "git show", and since it is porcelain, I don't think there should be any negative fallout by changing the output.

---
Jeff King (2):
  show: suppress extra newline when showing annotated tag
  show: add space between tag body and tagged object
 builtin-log.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Next: Jeff King
Message 1 of 9 in “cosmetic improvements for "git show tag"”
  1. 0/2 cosmetic improvements for "git show tag"Jeff King, Jul 17, 2009
  2. 1/2 show: suppress extra newline when showing annotated tagJeff King, Jul 17, 2009
  3. 1/2 Re: show: suppress extra newline when showing annotated tagNicolas Sebrecht, Jul 18, 2009
  4. Jeff KingJul 18, 2009
  5. 2/2 show: add space between tag body and tagged objectJeff King, Jul 17, 2009
  6. 0/2 Re: cosmetic improvements for "git show tag"Nicolas Sebrecht, Jul 18, 2009
  7. Jeff KingJul 18, 2009
  8. Jeff KingJul 18, 2009
  9. Junio C HamanoJul 19, 2009

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.