From: Junio C Hamano Date: Sun, 11 Mar 2012 09:25:43 +0000 (-0800) Subject: ident.c: add split_ident_line() to parse formatted ident line X-Git-Tag: v1.7.10.4~5^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4b340cfab9c7a18e39bc531d6a6ffaffdf95f62d?hp=4b340cfab9c7a18e39bc531d6a6ffaffdf95f62d ident.c: add split_ident_line() to parse formatted ident line 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 ---