am: refactor read_author_script()
commita77598ef44c45800983448489ab87f9519e341af
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2016 19:36:42 +0000 (30 12:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Aug 2016 19:36:42 +0000 (30 12:36 -0700)
treed0b9e223832718eae5b7a3deb703ea8f925ed047
parentd5cb9cbd64165153a318e1049f8bf14b09a16b11
am: refactor read_author_script()

By splitting the part that reads from a file and the part that
parses the variable definitions from the contents, make the latter
can be more reusable in the future.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c