OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb816c5
)
git-gui: Only allow Refresh in diff context menu when we have a diff.
author
Shawn O. Pearce
<spearce@spearce.org>
Thu, 25 Jan 2007 01:39:30 +0000
(20:39 -0500)
committer
Shawn O. Pearce
<spearce@spearce.org>
Thu, 25 Jan 2007 05:25:32 +0000
(
00:25
-0500)
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>
git-gui.sh
patch
|
blob
|
history
diff --git
a/git-gui.sh
b/git-gui.sh
index
79f980c
..
b9e3d56
100755
(executable)
--- 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 \