add @TAG_OFFSET@ support in versionformat for git

Mark the commit count since @PARENT_TAG@, if there
is no @PARENT_TAG@, will count since first commit.

Well, previous pull request was closed incorrect by me, so another one is here.
Nicer to call this `test_versionformat_tag_offset`.  Thanks for writing the tests though!