git-gui: Use builtin version of 'git gc'.
commitbc7452f5e7c0c472bc580e2e00d84f31d1af50ce
authorShawn O. Pearce <spearce@spearce.org>
Fri, 26 Jan 2007 07:02:09 +0000 (26 02:02 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 26 Jan 2007 07:02:09 +0000 (26 02:02 -0500)
tree1e1f2f2194ed371b88ccb15a0e572ae51834dbb6
parent6c3d1481bab96659a80771194d935cb6db02300e
git-gui: Use builtin version of 'git gc'.

Technically the new git-gc command is strictly Porcelain; its invoking
multiple plumbing commands to do its work.  Since git-gui tries to not
rely on Porclain we shouldn't be invoking git-gc directly, instead we
should perform its tasks on our own.

To make this easy I've created console_chain, which takes a list of
tasks to perform and runs them all in the same console window.  If
any individual task fails then the chain stops running and the window
shows a failure bar.  Only once all tasks have been completed will it
invoke console_done with a successful status.

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