summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0511798)
raw | patch | inline | side by side (parent: 0511798)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 9 May 2007 04:48:27 +0000 (00:48 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 9 May 2007 04:48:27 +0000 (00:48 -0400) |
This is a simple change to match what gitk does when it shows
a commit; we format using ISO dates (yyyy-mm-dd HH:MM:SS).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
a commit; we format using ISO dates (yyyy-mm-dd HH:MM:SS).
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl | patch | blob | history |
diff --git a/lib/blame.tcl b/lib/blame.tcl
index d6d57d889df30b66b8255dc16d18933a068e4234..8b032d959011f111c052fb4eee8be02aa6d45dd9 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
set author_time {}
catch {set author_name $header($cmit,author)}
catch {set author_email $header($cmit,author-mail)}
- catch {set author_time [clock format $header($cmit,author-time)]}
+ catch {set author_time [clock format \
+ $header($cmit,author-time) \
+ -format {%Y-%m-%d %H:%M:%S}
+ ]}
set committer_name {}
set committer_email {}
set committer_time {}
catch {set committer_name $header($cmit,committer)}
catch {set committer_email $header($cmit,committer-mail)}
- catch {set committer_time [clock format $header($cmit,committer-time)]}
+ catch {set committer_time [clock format \
+ $header($cmit,committer-time) \
+ -format {%Y-%m-%d %H:%M:%S}
+ ]}
if {[catch {set msg $header($cmit,message)}]} {
set msg {}
}
$w_cmit insert end "commit $cmit
-Author: $author_name $author_email $author_time
-Committer: $committer_name $committer_email $committer_time
+Author: $author_name $author_email $author_time
+Committer: $committer_name $committer_email $committer_time
Original File: [escape_path $line_file($lno)]
$msg"