tg: better accomodate user.useConfigOnly=true
commit03726b942eb597b20ce4f8d7d50b9f373823bee5
authorKyle J. McKay <mackyle@gmail.com>
Fri, 9 Dec 2016 20:28:25 +0000 (9 12:28 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 9 Dec 2016 20:28:25 +0000 (9 12:28 -0800)
tree9b688e3d62796b4874515e90e0a96a48cb6a04c9
parent27c9ab12d2914c8b13a62e720d41a664bdad4dc7
tg: better accomodate user.useConfigOnly=true

While it is true that "git var GIT_AUTHOR_IDENT" and/or
"git var GIT_COMMITTER_IDENT" can actually fail in some cases
when user.useConfigOnly is not true, it's somewhat unlikely.

However, with the advent of user.useConfigOnly=true it's
much more likely that a situation will be encountered where
"git var GIT_AUTHOR_IDENT" and/or "git var GIT_COMMITTER_IDENT"
will fail.

It's very inconvenient when this happens in the middle of some
TopGit operation.  It's much better if the failure takes place
at the beginning of such an operation before any data has been
enetered or any changes have been made.

Therefore, run "git var GIT_AUTHOR_IDENT" and
"git var GIT_COMMITTER_IDENT" at various strategic locations
(and exit if either fails) so that any issues can be corrected
before TopGit starts to make any changes.

This provides a much improved user experience.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg-annihilate.sh
tg-create.sh
tg-depend.sh
tg-export.sh
tg-import.sh
tg-rebase.sh
tg-tag.sh
tg-update.sh
tg.sh