diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2007-01-24 20:39:30 -0500 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-25 00:25:32 -0500 |
| commit | 86773d9bfc6124dec7b33094103f4819684bc4ae (patch) | |
| tree | 5937860307b700ce3ac08681f3a5d499c215fc9a | |
| parent | bb816c5a25e3a87d4d9588ddcccf83b8a10d8d31 (diff) | |
| download | 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>
| -rwxr-xr-x | git-gui.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 79f980c470..b9e3d563e2 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 \ |
