Skip to content

Commit 685caf9

Browse files
committed
git-gui: Convert blame to the "class" way of doing things
Our blame viewer code has historically been a mess simply because the data for multiple viewers was all crammed into a single pair of Tcl arrays. This made the code hard to read and even harder to maintain. Now that we have a slightly better way of tracking the data for our "meta-widgets" we can make use of it here in the blame viewer to cleanup the code and make it easier to work with long term. Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 28bf928 commit 685caf9

File tree

3 files changed

+123
-133
lines changed

3 files changed

+123
-133
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ blame {
15901590
exit 1
15911591
}
15921592
set current_branch [lindex $argv 0]
1593-
show_blame $current_branch [lindex $argv 1]
1593+
blame::new $current_branch [lindex $argv 1]
15941594
return
15951595
}
15961596
citool -

0 commit comments

Comments
 (0)