tg status: behave reasonably in a bare repository
commit113be25cfafed34a1e8d45bdf5a2661b102a4da6
authorKyle J. McKay <mackyle@gmail.com>
Sat, 11 Mar 2017 08:03:55 +0000 (11 00:03 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 11 Mar 2017 08:03:55 +0000 (11 00:03 -0800)
tree84fe5c63334654fe92cbf5eb2dd1fb34df6ab504
parentfc420917366035afef9611c4cd488d41a1df627e
tg status: behave reasonably in a bare repository

Although there's no working tree in a bare repository, the
information for HEAD (and even conceivably an upstream) can
be shown without issue.

Make it so and just automatically omit the working tree
information when `tg status` is run in a bare repository.

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