aboutsummaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-24 20:39:30 -0500
committerShawn O. Pearce <spearce@spearce.org>2007-01-25 00:25:32 -0500
commit86773d9bfc6124dec7b33094103f4819684bc4ae (patch)
tree5937860307b700ce3ac08681f3a5d499c215fc9a /git-gui.sh
parentbb816c5a25e3a87d4d9588ddcccf83b8a10d8d31 (diff)
downloadgit-86773d9bfc6124dec7b33094103f4819684bc4ae.tar.gz
git-86773d9bfc6124dec7b33094103f4819684bc4ae.tar.xz
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>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 79f980c47..b9e3d563e 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -4261,6 +4261,7 @@ $ctxm add command \
-label {Refresh} \
-font font_ui \
-command reshow_diff
+lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state]
$ctxm add command \
-label {Copy} \
-font font_ui \