logmsg_reencode: lazily load missing commit buffers
[gitweb.git] / commit.h
index b6ad8f3f307a46cd5a0555ab346abaa20013b13a..e770649731d1fd7fde3dd02cffbb8f9cee734c6a 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -89,6 +89,8 @@ struct pretty_print_context {
        char *notes_message;
        struct reflog_walk_info *reflog_info;
        const char *output_encoding;
+       struct string_list *mailmap;
+       int color;
 };
 
 struct userformat_want {
@@ -99,6 +101,7 @@ extern int has_non_ascii(const char *text);
 struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */
 extern char *logmsg_reencode(const struct commit *commit,
                             const char *output_encoding);
+extern void logmsg_free(char *msg, const struct commit *commit);
 extern void get_commit_format(const char *arg, struct rev_info *);
 extern const char *format_subject(struct strbuf *sb, const char *msg,
                                  const char *line_separator);