@matheusbsbs / matheus-bagliano / commits / 79c50bf3ee
Fork 0

git-gui: Show original filename in blame tooltip

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>

Shawn O. Pearce committed Jun 1, 2007 at 21:59 UTC 79c50bf3ee1e0fb5c257ed6f6680cae726a4c412
1 file changed +7
lib/blame.tcl
+7
@@ -805,6 +805,13 @@ method _open_tooltip {cur_w} {
805 $author_name $author_email $author_time
806 $summary"
807
808 + set file $line_file($lno)
809 + if {$file ne $path} {
810 + append tooltip_text "
811 +
812 +Original File: $file"
813 + }
814 +
815 if {$tooltip_wm ne "$cur_w.tooltip"} {
816 _hide_tooltip $this
817