Skip to content

Commit 685316c

Browse files
Anand Kumriapaulusmack
authored andcommitted
gitk: Display the date of a tag in a human-friendly way
By selecting a tag within gitk you can display information about it. This information is output by using the command 'git cat-file tag <tagid>' This outputs the *raw* information from the tag, amongst which is the time - in seconds since the epoch. As useful as that value is, I find it a lot easier to read and process time which it is something like: "Mon Dec 31 14:26:11 2012 -0800" This change will modify the display of tags in gitk like so: @@ -1,7 +1,7 @@ object 5d41784 type commit tag v1.8.1 -tagger Junio C Hamano <[email protected]> 1356992771 -0800 +tagger Junio C Hamano <[email protected]> Mon Dec 31 14:26:11 2012 -0800 Git 1.8.1 -----BEGIN PGP SIGNATURE----- Signed-off-by: Anand Kumria <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 39c1269 commit 685316c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10831,7 +10831,7 @@ proc showtag {tag isnew} {
1083110831
set linknum 0
1083210832
if {![info exists cached_tagcontent($tag)]} {
1083310833
catch {
10834-
set cached_tagcontent($tag) [exec git cat-file tag $tag]
10834+
set cached_tagcontent($tag) [exec git cat-file -p $tag]
1083510835
}
1083610836
}
1083710837
if {[info exists cached_tagcontent($tag)]} {

0 commit comments

Comments
 (0)