summaryrefslogtreecommitdiff
path: root/tests/commit/signature.c
Commit message (Collapse)AuthorAgeFilesLines
* signature: distinguish +0000 and -0000 UTC offsetsHenry Kleynhans2017-11-121-0/+27
| | | | | | | | | | | | | | Git considers '-0000' a valid offset for signature lines. They need to be treated as _not_ equal to a '+0000' signature offset. Parsing a signature line stores the offset in a signed integer which does not distinguish between `+0` and `-0`. This patch adds an additional flag `sign` to the `git_time` in the `signature` object which is populated with the sign of the offset. In addition to exposing this information to the user, this information is also used to compare signatures. /cc @pks-t @ethomson
* Introduce `git_signature_from_buffer`ethomson/signature_from_bufferEdward Thomson2016-04-281-0/+13
| | | | | Allow users to construct a signature from the type of signature lines that actually appear in commits.
* signature: Strip crud just like Git doesVicent Marti2015-10-211-0/+7
|
* signature: don't allow empty emailscmn/signature-empty-emailCarlos Martín Nieto2014-09-101-2/+2
| | | | | | A signature is made up of a non-empty name and a non-empty email so let's validate that. This also brings us more in line with git, which also rejects ident with an empty email.
* Rename tests-clar to testsBen Straub2013-11-141-0/+81