commit: helper methods to reduce redundant blocks of code
authorPat Notz <patnotz@gmail.com>
Tue, 2 Nov 2010 19:59:07 +0000 (13:59 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Nov 2010 20:53:34 +0000 (13:53 -0700)
* builtin/commit.c: Replace block of code with a one-liner call to
logmsg_reencode().

* commit.c: new function for looking up a comit by name

* pretty.c: helper methods for getting output encodings

Add helpers get_log_output_encoding() and
get_commit_output_encoding() that eliminate some messy and duplicate
if-blocks.

Signed-off-by: Pat Notz <patnotz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found