@matheusbsbs / matheus-bagliano / commits / a49c67d1ff
Fork 0

git-gui: Misc. comment formatting cleanups.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Nov 18, 2006 at 03:27 UTC a49c67d1ff9861d80bae57642d891016ea5debd5
1 file changed +19 -11
git-gui
+19 -11
@@ -202,11 +202,6 @@ set last_clicked {}
202 set disable_on_lock [list]
203 set index_lock_type none
204
205 -set HEAD {}
206 -set PARENT {}
207 -set commit_type {}
208 -set empty_tree {}
209 -
205 proc lock_index {type} {
206 global index_lock_type disable_on_lock
207
@@ -2374,6 +2369,7 @@ apply_config
2369 ## ui construction
2370
2371 # -- Menu Bar
2372 +#
2373 menu .mbar -tearoff 0
2374 .mbar add cascade -label Project -menu .mbar.project
2375 .mbar add cascade -label Edit -menu .mbar.edit
@@ -2386,6 +2382,7 @@ if {!$single_commit} {
2382 . configure -menu .mbar
2383
2384 # -- Project Menu
2385 +#
2386 menu .mbar.project
2387 .mbar.project add command -label Visualize \
2388 -command do_gitk \
@@ -2451,6 +2448,7 @@ menu .mbar.edit
2448 -font font_ui
2449
2450 # -- Commit Menu
2451 +#
2452 menu .mbar.commit
2453 .mbar.commit add command -label Rescan \
2454 -command do_rescan \
@@ -2485,24 +2483,23 @@ lappend disable_on_lock \
2483 lappend disable_on_lock \
2484 [list .mbar.commit entryconf [.mbar.commit index last] -state]
2485
2486 +# -- Transport menus
2487 +#
2488 if {!$single_commit} {
2489 - # -- Fetch Menu
2489 menu .mbar.fetch
2491 -
2492 - # -- Pull Menu
2490 menu .mbar.pull
2494 -
2495 - # -- Push Menu
2491 menu .mbar.push
2492 }
2493
2494 # -- Main Window Layout
2495 +#
2496 panedwindow .vpane -orient vertical
2497 panedwindow .vpane.files -orient horizontal
2498 .vpane add .vpane.files -sticky nsew -height 100 -width 400
2499 pack .vpane -anchor n -side top -fill both -expand 1
2500
2501 # -- Index File List
2502 +#
2503 frame .vpane.files.index -height 100 -width 400
2504 label .vpane.files.index.title -text {Modified Files} \
2505 -background green \
@@ -2520,6 +2517,7 @@ pack $ui_index -side left -fill both -expand 1
2517 .vpane.files add .vpane.files.index -sticky nsew
2518
2519 # -- Other (Add) File List
2520 +#
2521 frame .vpane.files.other -height 100 -width 100
2522 label .vpane.files.other.title -text {Untracked Files} \
2523 -background red \
@@ -2545,6 +2543,7 @@ foreach i [list $ui_index $ui_other] {
2543 unset i
2544
2545 # -- Diff and Commit Area
2546 +#
2547 frame .vpane.lower -height 300 -width 400
2548 frame .vpane.lower.commarea
2549 frame .vpane.lower.diff -relief sunken -borderwidth 1
@@ -2553,6 +2552,7 @@ pack .vpane.lower.diff -side bottom -fill both -expand 1
2552 .vpane add .vpane.lower -stick nsew
2553
2554 # -- Commit Area Buttons
2555 +#
2556 frame .vpane.lower.commarea.buttons
2557 label .vpane.lower.commarea.buttons.l -text {} \
2558 -anchor w \
@@ -2595,10 +2595,11 @@ lappend disable_on_lock \
2595 {.vpane.lower.commarea.buttons.commit conf -state}
2596
2597 # -- Commit Message Buffer
2598 +#
2599 frame .vpane.lower.commarea.buffer
2600 set ui_comm .vpane.lower.commarea.buffer.t
2601 set ui_coml .vpane.lower.commarea.buffer.l
2601 -label $ui_coml -text {Commit Message:} \
2602 +label $ui_coml \
2603 -anchor w \
2604 -justify left \
2605 -font font_ui
@@ -2670,6 +2671,7 @@ $ctxm add command \
2671 bind_button3 $ui_comm "tk_popup $ctxm %X %Y"
2672
2673 # -- Diff Header
2674 +#
2675 set current_diff {}
2676 set diff_actions [list]
2677 proc trace_current_diff {varname args} {
@@ -2732,6 +2734,7 @@ lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state]
2734 bind_button3 .vpane.lower.diff.header.path "tk_popup $ctxm %X %Y"
2735
2736 # -- Diff Body
2737 +#
2738 frame .vpane.lower.diff.body
2739 set ui_diff .vpane.lower.diff.body.t
2740 text $ui_diff -background white -borderwidth 0 \
@@ -2888,6 +2891,11 @@ unset i
2891
2892 set file_lists($ui_index) [list]
2893 set file_lists($ui_other) [list]
2894 +
2895 +set HEAD {}
2896 +set PARENT {}
2897 +set commit_type {}
2898 +set empty_tree {}
2899 set current_diff {}
2900
2901 wm title . "$appname ([file normalize [file dirname $gitdir]])"