]> git.ipfire.org Git - thirdparty/git.git/commit - mailmap.c
mailmap: refactor mailmap parsing for non-file sources
authorJeff King <peff@peff.net>
Wed, 12 Dec 2012 10:59:45 +0000 (05:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Dec 2012 19:09:37 +0000 (11:09 -0800)
commit7c8ce308d383ce6888f69e39f0d32322600c2cc2
tree683d9e074e0e6c8911935ebdf59e0a2dbf0b08ad
parent75ed918bda00a0786bab7de3d220765226fe3f1e
mailmap: refactor mailmap parsing for non-file sources

The read_single_mailmap function opens a mailmap file and
parses each line. In preparation for having non-file
mailmaps, let's pull out the line-parsing logic into its own
function (read_mailmap_line), and rename the file-parsing
function to match (read_mailmap_file).

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