git-gui: Don't start 'gitk --all' on Mac OS X.
[gitweb.git] / git-gui
diff --git a/git-gui b/git-gui
index ef8c7cf0655f07c2be037db4bef86af8b7c9a7b4..d1cc0ec2485d524c85d935a8e9a5df153350d197 100755 (executable)
--- 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} {