format_commit_message(): simplify calls to logmsg_reencode()
commitec008076dbe6acde42ce9ff796f72ca7c3edd5bf
authorJunio C Hamano <gitster@pobox.com>
Mon, 10 Dec 2012 20:50:10 +0000 (10 12:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Dec 2012 20:50:10 +0000 (10 12:50 -0800)
tree50e15d19e0902b128b9829c372e27078aa1398b6
parent0e18bcd5e937b9e5857892e7f5c80c3c5b1da5d4
format_commit_message(): simplify calls to logmsg_reencode()

All the other callers of logmsg_reencode() pass return value of
get_commit_output_encoding() or get_log_output_encoding().  Teach
the function to optionally take NULL as a synonym to "" aka "no
conversion requested" so that we can simplify the only remaining
calling site.

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