diff options
author | Stefan Beller <sbeller@google.com> | 2018-11-14 01:13:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-14 09:22:40 +0100 |
commit | f54fbf5eefb9740a318344fe400f54f047cc4bf1 (patch) | |
tree | c24d8e186e763729b503571c26b0247601debb23 /pretty.h | |
parent | commit: prepare logmsg_reencode to handle arbitrary repositories (diff) | |
download | git-f54fbf5eefb9740a318344fe400f54f047cc4bf1.tar.xz git-f54fbf5eefb9740a318344fe400f54f047cc4bf1.zip |
pretty: prepare format_commit_message to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.h')
-rw-r--r-- | pretty.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -103,9 +103,14 @@ void pp_remainder(struct pretty_print_context *pp, const char **msg_p, * Put the result to "sb". * Please use this function for custom formats. */ -void format_commit_message(const struct commit *commit, +void repo_format_commit_message(struct repository *r, + const struct commit *commit, const char *format, struct strbuf *sb, const struct pretty_print_context *context); +#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS +#define format_commit_message(c, f, s, con) \ + repo_format_commit_message(the_repository, c, f, s, con) +#endif /* * Parse given arguments from "arg", check it for correctness and |