git-gui: Convert browser, console to "class" format

Now that we have a slightly easier method of working with per-widget
data we should make use of that technique in our browser and console
meta-widgets, as both have a decent amount of information that they
store on a per-widget basis and our current approach of handling
it is difficult to follow.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce
2007-05-08 20:33:47 -04:00
parent 1f07c4e5ce
commit c74b6c66f0
6 changed files with 134 additions and 180 deletions

View File

@ -70,12 +70,12 @@ proc do_stats {} {
proc do_gc {} {
set w [console::new {gc} {Compressing the object database}]
console::chain {
{exec {git pack-refs --prune}}
{exec {git reflog expire --all}}
{exec {git repack -a -d -l}}
{exec {git rerere gc}}
} $w
console::chain $w {
{exec git pack-refs --prune}
{exec git reflog expire --all}
{exec git repack -a -d -l}
{exec git rerere gc}
}
}
proc do_fsck_objects {} {