[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 -0400commit 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 -0400annotated tag message
commit 88c17f18d7f3091508218b36a17cdf0dfd56ae65
Author: Jeff King <peff@peff.net>
Date: Fri Jul 17 19:10:50 2009 -0400commit 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(-)