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

[PATCH] gitk: pretty print tag objects

From
SMSven Marnach <sven.marnach@ipvs.uni-stuttgart.de>
Date
Mar 31, 2008, 20:29 UTC
Message-ID
<20080331202929.GA4094@pantoffel-wg.de>

Currently, tag objects are shown as the raw tag object contents. By pretty printing them, the time stamp is shown in a more readable format (and this is actually the only difference to the raw format).

Signed-off-by: Sven Marnach <sven.marnach@ipvs.uni-stuttgart.de>
---
 gitk-git/gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 84ab02e..4581893 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -7843,7 +7843,7 @@ proc showtag {tag isnew} {
     set linknum 0
     if {![info exists tagcontents($tag)]} {
 	catch {
-	    set tagcontents($tag) [exec git cat-file tag $tagobjid($tag)]
+	    set tagcontents($tag) [exec git cat-file -p $tagobjid($tag)]
 	}
     }
     if {[info exists tagcontents($tag)]} {
-- 
debian.1.5.5_rc2.1
Message 1 of 1 in “gitk: pretty print tag objects”
  1. gitk: pretty print tag objectsSven Marnach, Mar 31, 2008

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.