Do not let the user export to a head without the head being strict
subset of what we are exporting. (In that case, the user should
import the new stuff from git first.)
Move string_to_datetime() from commands.cc to transforms.cc and make
it public. And while at it, use it when decoding author-time cert
while exporting to git.