ident.c: add split_ident_line() to parse formatted ident line
authorJunio C Hamano <gitster@pobox.com>
Sun, 11 Mar 2012 09:25:43 +0000 (01:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Mar 2012 10:56:50 +0000 (03:56 -0700)
The commit formatting logic format_person_part() in pretty.c
implements the logic to split an author/committer ident line into
its parts, intermixed with logic to compute its output using these
piece it computes.

Separate the former out to a helper function split_ident_line() so
that other codepath can use the same logic, and rewrite the function
using the helper function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found