summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-21 13:27:43 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-21 22:47:55 -0500
commit68c30b4af1b1d6f95ae6724364641aa787247f0f (patch)
tree8440ebdf1435fefddf51365dd12ca6ffcd9404d4 /git-gui.sh
parentgit-gui: Correct disappearing unstaged files. (diff)
downloadtgif-68c30b4af1b1d6f95ae6724364641aa787247f0f.tar.xz
git-gui: Add Refresh to diff viewer context menu.
Sometimes you want to just force the diff to redisplay itself without rescanning every file in the filesystem (as that can be very costly on large projects and slow operating systems). Now you can force a diff-only refresh from the context menu. Previously you could also do this by reclicking on the file name in the UI, but it may not be obvious to all users, having a context menu option makes it more clear. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index aa8f0ba067..f618a60d7b 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3922,6 +3922,10 @@ $ui_diff tag conf d>>>>>>> \
set ctxm .vpane.lower.diff.body.ctxm
menu $ctxm -tearoff 0
$ctxm add command \
+ -label {Refresh} \
+ -font font_ui \
+ -command reshow_diff
+$ctxm add command \
-label {Copy} \
-font font_ui \
-command {tk_textCopy $ui_diff}