tg: document and tolerate "bare branches"
commit057535368f8610aa61e101619a2247421ea99f93
authorKyle J. McKay <mackyle@gmail.com>
Sat, 10 Jun 2017 23:17:28 +0000 (10 16:17 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 10 Jun 2017 23:17:28 +0000 (10 16:17 -0700)
treeb79ee747bb03979bd5bc4980f25957761f48f4e5
parent5e06d3a35af74cddf01a5278d631a272053424fd
tg: document and tolerate "bare branches"

Document what a "bare branch" is (a TopGit branch with neither a
.topdeps nor .topmsg file) and tolerate them even more than they
are already tolerated by allowing continued commits on them without
complaints from the pre-commit hook.

Support for this type of TopGit branch has been present for some
time.  This just formalizes it, documents it and removes the need
for use of "-n" when committing on such a branch.

Update the tests for them as well to match the new pre-commit
hook behavior.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
README
hooks/pre-commit.sh
t/t2020-hook-bare-branches.sh