tg-update.sh: optimize recursion
commit6881145935b82442c8d98ecd70a0467dee69fcf2
authorKyle J. McKay <mackyle@gmail.com>
Tue, 17 Jan 2017 23:13:16 +0000 (17 15:13 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 17 Jan 2017 23:13:16 +0000 (17 15:13 -0800)
tree3c4c3dfed1c5bad42bc5296852280c629ab23109
parent64dce575f19f5c6f0da19ca410762442408c4610
tg-update.sh: optimize recursion

With a complicated branch structure the update process can
end up spending a lot of time recursing into sub-updates
for dependents.

Speed this up a bit and bypass most of the overhead for those
recursive updates by running them directly from a subshell
rather than spawning a whole new copy of tg with all the
associated startup and setup costs that entails.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg-update.sh
tg.sh