commit: use split_ident_line to compare author/committer
commit4701026352ada1ebc36532272ca1e12897b1de11
authorJeff King <peff@peff.net>
Fri, 2 May 2014 01:06:57 +0000 (1 21:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 May 2014 21:12:27 +0000 (2 14:12 -0700)
tree1a8b1a942ea29355c591c22a80f09b9ddb00ed87
parentb4f86a4ce85e4e370a67455de6586a02f158a789
commit: use split_ident_line to compare author/committer

Instead of string-wise comparing the author/committer lines
with their timestamps truncated, we can use split_ident_line
and ident_cmp. These functions are more robust than our
ad-hoc parsing, though in practice it should not matter, as
we just generated these ident lines ourselves.

However, this will also allow us easy access to the
timestamp and tz fields in future patches.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c