From 68c30b4af1b1d6f95ae6724364641aa787247f0f Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Sun, 21 Jan 2007 13:27:43 -0500 Subject: [PATCH] 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 --- git-gui.sh | 4 ++++ 1 file changed, 4 insertions(+) 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} -- 2.11.4.GIT