aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-21 22:58:28 -0500
committerShawn O. Pearce <spearce@spearce.org>2006-11-21 22:58:28 -0500
commit5040f926f9b06946b6b6144eb358db1850dce505 (patch)
treed634b08c678809a8971d263ecc9880eb33ca0818 /git-gui
parentd075242923691e5f3c671f240945b0bdf26a7cd0 (diff)
downloadgit-5040f926f9b06946b6b6144eb358db1850dce505.tar.gz
git-5040f926f9b06946b6b6144eb358db1850dce505.tar.xz
git-gui: Don't start 'gitk --all' on Mac OS X.
Since gitk is currently broken on Mac OS X and is unable to start itself when given command line parameters just don't offer the "Visual All Branches" menu option on Mac OS X. Once this feature of gitk is fixed we should change this section of code to make sure a working version of gitk will be executed before we offer the option up to the user. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui10
1 files changed, 6 insertions, 4 deletions
diff --git a/git-gui b/git-gui
index ef8c7cf06..d1cc0ec24 100755
--- a/git-gui
+++ b/git-gui
@@ -2713,10 +2713,12 @@ menu .mbar.repository
-label {Visualize Current Branch} \
-command {do_gitk {}} \
-font font_ui
-.mbar.repository add command \
- -label {Visualize All Branches} \
- -command {do_gitk {--all}} \
- -font font_ui
+if {![is_MacOSX]} {
+ .mbar.repository add command \
+ -label {Visualize All Branches} \
+ -command {do_gitk {--all}} \
+ -font font_ui
+}
.mbar.repository add separator
if {!$single_commit} {