summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 669fbc3)
raw | patch | inline | side by side (parent: 669fbc3)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 2 Jun 2007 01:59:29 +0000 (21:59 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 6 Jun 2007 05:26:47 +0000 (01:26 -0400) |
If we have two commits right next to each other in the final
file and they were kept as different blocks in the leftmost
column then its probably because the original filename was
different. To help the user know where they are digging into
when they click on that link we now show the original file in
the tooltip, but to save space we do so only if the original
file is not the same as the file we are currently viewing.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
file and they were kept as different blocks in the leftmost
column then its probably because the original filename was
different. To help the user know where they are digging into
when they click on that link we now show the original file in
the tooltip, but to save space we do so only if the original
file is not the same as the file we are currently viewing.
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 33d5204f32d6f16939875cfe7da5431161f6c609..bd8e631f34dffcfc5835e0788500adc900633a4c 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
$author_name $author_email $author_time
$summary"
+ set file $line_file($lno)
+ if {$file ne $path} {
+ append tooltip_text "
+
+Original File: $file"
+ }
+
if {$tooltip_wm ne "$cur_w.tooltip"} {
_hide_tooltip $this