diff options
author | Stefan Beller <sbeller@google.com> | 2018-11-13 16:12:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-14 17:22:40 +0900 |
commit | 424510ed193fdc49cacc832d8795677d0cc54461 (patch) | |
tree | 8ffbfbc99f63b73e29a4e92a60807cfb627cec07 /commit.h | |
parent | 70315373ae51b45b9ca0ac43df396bb9035fe449 (diff) | |
download | git-424510ed193fdc49cacc832d8795677d0cc54461.tar.gz |
commit: prepare logmsg_reencode to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -180,6 +180,14 @@ extern int has_non_ascii(const char *text); extern const char *logmsg_reencode(const struct commit *commit, char **commit_encoding, const char *output_encoding); +const char *repo_logmsg_reencode(struct repository *r, + const struct commit *commit, + char **commit_encoding, + const char *output_encoding); +#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS +#define logmsg_reencode(c, enc, out) repo_logmsg_reencode(the_repository, c, enc, out) +#endif + extern const char *skip_blank_lines(const char *msg); /** Removes the first commit from a list sorted by date, and adds all |