tg.sh: refactor switch_to_base into checkout_symref_full
commitf09fcf6b62beb4cde49cfe7e7436f21c86072c4d
authorKyle J. McKay <mackyle@gmail.com>
Fri, 24 Feb 2017 16:06:52 +0000 (24 08:06 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 24 Feb 2017 16:06:52 +0000 (24 08:06 -0800)
tree7abd926a11f7b67a51e2e31bae366cde4adf8726
parentcb59505b063486fa3899704403b68049601cc0a4
tg.sh: refactor switch_to_base into checkout_symref_full

It's useful to have the functionality of switch_to_base without
always requiring the target to be a base.

Make it so and also sneak in new "-f" functionality at the same
time.

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