tg-create.sh: make "@" work properly as alias for HEAD
commit75c87381934015220ff11583e041b1f83a2612ef
authorKyle J. McKay <mackyle@gmail.com>
Sat, 25 Mar 2017 07:40:21 +0000 (25 00:40 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 25 Mar 2017 07:40:21 +0000 (25 00:40 -0700)
tree29cd702793c169fdf881c7794484d4b7979e0f75
parent144d7cfe8dcd12bf489c508031520b24e06644f1
tg-create.sh: make "@" work properly as alias for HEAD

It should be possible to do this to create a new "orphan"
TopGit branch:

    git checkout --orphan t/new-branch
    git read-tree --empty
    tg create --topmsg="new orphan branch" --base @

The "@" should be taken as "HEAD" (doing the above explicitly
using "HEAD" does work properly), but it wasn't.

Fix this by transforming "@" into "HEAD" in the right place
so that it does work properly.

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