tg-update.sh: reduce number of checkouts slightly
commit1c4c08fd3f85360b8e98d3afe1af0ba6e234ea2d
authorKyle J. McKay <mackyle@gmail.com>
Fri, 20 Jan 2017 22:28:14 +0000 (20 14:28 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 20 Jan 2017 22:28:14 +0000 (20 14:28 -0800)
tree0f310f2fb713a2c0707fa814a249e99530b7e94b
parent567c404d5536aad666416e335d8bca79012d5461
tg-update.sh: reduce number of checkouts slightly

Avoid running checkout (or its equivalent switch_to_base)
unless absolutely necessary.

Add a final checkout to the single branch update mode to
make sure tg-update ends up on the expected branch in that
case.

Do some minor cleanup while in there to the way the
"msg"s are set and passed in to the merge command.

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