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>
Shawn O. Pearce committed
Jan 21, 2007 at 13:27 UTC
68c30b4af1b1d6f95ae6724364641aa787247f0f
1 file changed
+4
git-gui.sh
+4
@@ -3921,6 +3921,10 @@ $ui_diff tag conf d>>>>>>> \
3921
#
3922
set ctxm .vpane.lower.diff.body.ctxm
3923
menu $ctxm -tearoff 0
3924
+$ctxm add command \
3925
+ -label {Refresh} \
3926
+ -font font_ui \
3927
+ -command reshow_diff
3928
$ctxm add command \
3929
-label {Copy} \
3930
-font font_ui \