tg.sh: implement .git/tg-cache to speed things up
commit09555f0d5d9898bdc6039187373b2894f2cf7a79
authorKyle J. McKay <mackyle@gmail.com>
Sat, 10 Oct 2015 22:03:28 +0000 (10 15:03 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 10 Oct 2015 22:03:28 +0000 (10 15:03 -0700)
treeb7f1208613495fa73b728150f067753cfbbf50e1
parent99f4c60b93e87b715452d29421f926d59f78e496
tg.sh: implement .git/tg-cache to speed things up

The results of various operations on tg branches are cached
along with the hash values that produced the result.  If the
same values are requested, the cached version is used, otherwise
the cached version is updated.

Additionally, a faster rev_parse is implemented by caching the
output of git for-each-ref during operations where the output
will not be changing.

Together these make for a significant speed up.

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