git-gui: Misc. comment and formatting cleanups.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 25, 2006 at 03:38 UTC
85ab313ed3dc9a951ec3859fcc3a32a6c5c3ee19
1 file changed
+10
-7
git-gui
+10
-7
@@ -2997,6 +2997,7 @@ if {!$single_commit} {
2997
-font font_ui
2998
}
2999
}
3000
+
3001
.mbar.repository add command -label Quit \
3002
-command do_quit \
3003
-accelerator $M1T-Q \
@@ -3036,9 +3037,9 @@ menu .mbar.edit
3037
-accelerator $M1T-A \
3038
-font font_ui
3039
3040
+# -- Branch Menu
3041
+#
3042
if {!$single_commit} {
3040
- # -- Branch Menu
3041
- #
3043
menu .mbar.branch
3044
3045
.mbar.branch add command -label {Create...} \
@@ -3615,11 +3616,9 @@ set selected_commit_type new
3616
wm title . "$appname ([file normalize [file dirname $gitdir]])"
3617
focus -force $ui_comm
3618
3618
-# -- Warn the user about environmental problems.
3619
-# Cygwin's Tcl does *not* pass its env array
3620
-# onto any processes it spawns. This means
3621
-# that the git processes get none of our
3622
-# environment. That may not work...
3619
+# -- Warn the user about environmental problems. Cygwin's Tcl
3620
+# does *not* pass its env array onto any processes it spawns.
3621
+# This means that git processes get none of our environment.
3622
#
3623
if {[is_Windows]} {
3624
set ignored_env 0
@@ -3672,13 +3671,17 @@ user.email settings into your personal
3671
unset ignored_env msg suggest_user name
3672
}
3673
3674
+# -- Only initialize complex UI if we are going to stay running.
3675
+#
3676
if {!$single_commit} {
3677
load_all_remotes
3678
load_all_heads
3679
+
3680
populate_branch_menu .mbar.branch
3681
populate_fetch_menu .mbar.fetch
3682
populate_pull_menu .mbar.pull
3683
populate_push_menu .mbar.push
3684
}
3685
+
3686
lock_index begin-read
3687
after 1 do_rescan