git-gui: Move console procs into their own namespace
To help modularize git-gui better I'm isolating the code and variables required to handle our little console windows into their own namespace. This way we can say console::new rather than new_console, and the hidden internal procs to create the window and read data from our filehandle are off in their own private little land, where most users don't see them. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
@ -120,14 +120,14 @@ Please select fewer branches. To merge more than 15 branches, merge the branche
|
||||
|
||||
set msg "Merging $current_branch, [join $names {, }]"
|
||||
set ui_status_value "$msg..."
|
||||
set cons [new_console "Merge" $msg]
|
||||
console_exec $cons $cmd [list finish_merge $revcnt]
|
||||
set cons [console::new "Merge" $msg]
|
||||
console::exec $cons $cmd [list finish_merge $revcnt]
|
||||
bind $w <Destroy> {}
|
||||
destroy $w
|
||||
}
|
||||
|
||||
proc finish_merge {revcnt w ok} {
|
||||
console_done $w $ok
|
||||
console::done $w $ok
|
||||
if {$ok} {
|
||||
set msg {Merge completed successfully.}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user