tg-revert.sh: minor optimizations
commit4cc12dc30634642b17a93548b8074c5d2008ec8b
authorKyle J. McKay <mackyle@gmail.com>
Fri, 23 Jun 2017 17:00:22 +0000 (23 10:00 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 23 Jun 2017 17:00:22 +0000 (23 10:00 -0700)
treed03decec93b2c9070d6b2cad9724379c31a57e39
parentf242e03dca3d646e60cca021087ac58d17af4004
tg-revert.sh: minor optimizations

Use --buffer with cat-file when available.

Accelerate showing all unabbreviated refs.

Avoid stepping on ourself while extracting the refs.  In practice
this did not seem to be a problem, but a long pipeline was reading
from the same file it wrote to and replaced which is a no-no and
has now been corrected.

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