mktag.c: improve verification of tagger field and tests
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 27 Mar 2008 16:16:04 +0000 (11:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Mar 2008 05:54:09 +0000 (22:54 -0700)
commite0aaf781f656671694a0aa04d8a665bd4d7956e6
treece1a06d39933d13b40bf767c853bef7e793ef1da
parentf58dbf23c33e0e79622f4344b48ab5bc9bc360cc
mktag.c: improve verification of tagger field and tests

Since nearly its birth, git's tags have included a "tagger" field which
describes the name of tagger, email of tagger, and date and time of tagging.
But, this field was only loosely tested by git-mktag. Provide some thorough
testing for this field and also ensure that the tag header is separated
from the tag body by an empty line to reduce the convenience of creating
a flawed tag.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mktag.c
t/t3800-mktag.sh