summaryrefslogtreecommitdiff
path: root/lib/index.tcl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-06-04 04:07:35 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-06-06 01:26:52 -0400
commit0dfed77b3cc81342aee4c81e477d636a378c51cb (patch)
tree25bdcfb7c9e918c10b5d99f93f346670c651f6d0 /lib/index.tcl
parentgit-gui: Display both commits in our tooltips (diff)
downloadtgif-0dfed77b3cc81342aee4c81e477d636a378c51cb.tar.xz
git-gui: Jump to original line in blame viewer
When the user clicks on a commit link within one of the columns in the blame viewer we now jump them not just to that commit/file pair but also to the line of the original file. This saves the user a lot of time, as they don't need to search through the new file data for the chunk they were previously looking at. We also restore the prior view when the user clicks the back button to return to a pior commit/file pair that they were looking at. Turned out this was quite tricky to get working in Tk. Every time I tried to jump the text widgets to the correct locations by way of the "yview moveto" or "see" subcommands Tk performed the change until the current event finished dispatching, and then reset the views back to 0, making the change never take place. Forcing Tk to run the pending events before we jump the UI resolves the issue. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/index.tcl')
0 files changed, 0 insertions, 0 deletions