tg-tag.sh: allow choosing a consolidation commit's first parent
commitbde794827b895f1b7834688a7210ea04dd417fbc
authorKyle J. McKay <mackyle@gmail.com>
Thu, 30 Mar 2017 06:01:15 +0000 (29 23:01 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 30 Mar 2017 06:01:15 +0000 (29 23:01 -0700)
treeaa2148ba26d7e2e67c229686dde913b14d7ae38a
parentee52f7d57c7d81eba88bf184ccf8cc052cdc63b9
tg-tag.sh: allow choosing a consolidation commit's first parent

When multiple branches are tagged, if there ends up being more than
one independent head, a consolidation commit will be created and
that will be tagged.

The previously provided `--tree` option allows the tree used for
that commit to be something other than the empty tree.

Now, if one of the things being tagged is explicitly prefixed
with a tilde ('~'), it will be forced to become the first parent
of a consolidation commit if it's not the sole commit being
tagged already and, in addition, if --tree has NOT been used
then it's tree will become the default tree for any consolidation
commit instead of the empty tree (but --tree is always respected
if given).

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