提交 5040f926 编写于 作者: S Shawn O. Pearce

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: NShawn O. Pearce <spearce@spearce.org>
上级 d0752429
......@@ -2713,10 +2713,12 @@ menu .mbar.repository
-label {Visualize Current Branch} \
-command {do_gitk {}} \
-font font_ui
.mbar.repository add command \
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} {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册