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>
Shawn O. Pearce committed
Nov 21, 2006 at 22:58 UTC
5040f926f9b06946b6b6144eb358db1850dce505
1 file changed
+6
-4
git-gui
+6
-4
@@ -2713,10 +2713,12 @@ menu .mbar.repository
2713
-label {Visualize Current Branch} \
2714
-command {do_gitk {}} \
2715
-font font_ui
2716
-.mbar.repository add command \
2717
- -label {Visualize All Branches} \
2718
- -command {do_gitk {--all}} \
2719
- -font font_ui
2716
+if {![is_MacOSX]} {
2717
+ .mbar.repository add command \
2718
+ -label {Visualize All Branches} \
2719
+ -command {do_gitk {--all}} \
2720
+ -font font_ui
2721
+}
2722
.mbar.repository add separator
2723
2724
if {!$single_commit} {