summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-06-04 08:07:35 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-06-06 05:26:52 (GMT)
commit0dfed77b3cc81342aee4c81e477d636a378c51cb (patch)
tree25bdcfb7c9e918c10b5d99f93f346670c651f6d0 /Makefile
parent383d4e0f8b72f739c16ef7d723a134d59a0a0c2f (diff)
downloadgit-0dfed77b3cc81342aee4c81e477d636a378c51cb.zip
git-0dfed77b3cc81342aee4c81e477d636a378c51cb.tar.gz
git-0dfed77b3cc81342aee4c81e477d636a378c51cb.tar.bz2
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 'Makefile')
0 files changed, 0 insertions, 0 deletions