tg.sh: minor branch_needs_update efficiency
commit052c1e14df8b53229ee5f6996e435853661c9314
authorKyle J. McKay <mackyle@gmail.com>
Tue, 28 Mar 2017 18:54:17 +0000 (28 11:54 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 28 Mar 2017 18:54:17 +0000 (28 11:54 -0700)
treea649c75dea7b286ccdcfe33259199da886fb94da
parentc1cee428be6c185f071e25d521a725a7ee83e173
tg.sh: minor branch_needs_update efficiency

The recurse_deps function has been providing the
_dep_annihilated and _dep_has_remote variables for
a bit now.  Use them in the branch_needs_update
function to save time instead of recomputing them.

While this is a nice efficiency, once the values
are computed they are cached which means that while
this is a nice and correct update it doesn't really
net very much in the way of performance gain.

It's a measurable speed improvement, but only barely.

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