@matheusbsbs / matheus-bagliano / commits / 86773d9bfc
Fork 0

git-gui: Only allow Refresh in diff context menu when we have a diff.

There is no reason to attempt refreshing an empty diff viewer, so the Refresh option of our diff context menu should be disabled when there is no diff currently shown. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 24, 2007 at 20:39 UTC 86773d9bfc6124dec7b33094103f4819684bc4ae
1 file changed +1
git-gui.sh
+1
@@ -4261,6 +4261,7 @@ $ctxm add command \
4261 -label {Refresh} \
4262 -font font_ui \
4263 -command reshow_diff
4264 +lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state]
4265 $ctxm add command \
4266 -label {Copy} \
4267 -font font_ui \