mailinfo: libify

Move the bulk of the code from builtin/mailinfo.c to mailinfo.c
so that new callers can start calling mailinfo() directly.

Note that a few calls to exit() and die() need to be cleaned up
for the API to be truly useful, which will come in later steps.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2015-10-14 17:44:55 -07:00
parent 05e625e5bf
commit c6905e45f0
4 changed files with 1062 additions and 1048 deletions

1020
mailinfo.c Normal file

File diff suppressed because it is too large Load Diff