From: Shawn O. Pearce Date: Sun, 21 Jan 2007 18:27:43 +0000 (-0500) Subject: git-gui: Add Refresh to diff viewer context menu. X-Git-Tag: gitgui-0.6.0~94 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=68c30b4af1b1d6f95ae6724364641aa787247f0f;p=git.git 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 --- diff --git a/git-gui.sh b/git-gui.sh index aa8f0ba06..f618a60d7 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3921,6 +3921,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 \