author | Pat Notz <patnotz@gmail.com> | |
Tue, 2 Nov 2010 19:59:07 +0000 (13:59 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 4 Nov 2010 20:53:34 +0000 (13:53 -0700) | ||
commit | a6fa59924d154f2dcfc331357bf553e043aa0242 | |
tree | 0b70643b0e0a30f6d97acce2a9142af0a80fcde7 | tree | snapshot |
parent | c752e7f3e8d96a9673ad248addc9418164bd3ce6 | commit | diff |
commit: helper methods to reduce redundant blocks of code
* 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>
* 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>
builtin/commit.c | diff | blob | history | |
builtin/log.c | diff | blob | history | |
builtin/mailinfo.c | diff | blob | history | |
cache.h | diff | blob | history | |
commit.c | diff | blob | history | |
commit.h | diff | blob | history | |
environment.c | diff | blob | history | |
pretty.c | diff | blob | history |