summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-18 13:37:27 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-19 03:52:18 (GMT)
commitdc5ccdc6cab41e8a4b2ace991b1564fe9bdd172d (patch)
treee21624e4112de59553e2cc71ab473796c2d8a3e8 /git-gui.sh
parentff749c114a9642e79a1e93250828034f0338f1be (diff)
downloadgit-dc5ccdc6cab41e8a4b2ace991b1564fe9bdd172d.zip
git-dc5ccdc6cab41e8a4b2ace991b1564fe9bdd172d.tar.gz
git-dc5ccdc6cab41e8a4b2ace991b1564fe9bdd172d.tar.bz2
Don't offer my special Tools/Migrate hack unless in multicommit
Users shouldn't see this menu option if they startup a browser or blame from the command line, especially if they are doing so on a bare repository. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 2473488..7b6a96e 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1888,7 +1888,9 @@ if {[is_MacOSX]} {
# -- Tools Menu
#
- if {[is_Cygwin] && [file exists /usr/local/miga/lib/gui-miga]} {
+ if {[is_Cygwin]
+ && [is_enabled multicommit]
+ && [file exists /usr/local/miga/lib/gui-miga]} {
proc do_miga {} {
if {![lock_index update]} return
set cmd [list sh --login -c "/usr/local/miga/lib/gui-miga \"[pwd]\""]