X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=26ec8c0d1cebcf5e79564be690517cd2eb9c6413;hb=97b03c353856602a3c30b01baae1efb8dfe4243e;hp=e5332efcfc9449e0f3af4d6c49be63adfeb138b1;hpb=36a83f375bc247a09f46de0445a138d5e6de8a4f;p=git.git diff --git a/commit.h b/commit.h index e5332efcf..26ec8c0d1 100644 --- a/commit.h +++ b/commit.h @@ -70,15 +70,20 @@ struct pretty_print_context const char *after_subject; enum date_mode date_mode; int need_8bit_cte; + int show_notes; struct reflog_walk_info *reflog_info; }; -extern int non_ascii(int); +struct userformat_want { + unsigned notes:1; +}; + extern int has_non_ascii(const char *text); struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ extern char *reencode_commit_message(const struct commit *commit, const char **encoding_p); extern void get_commit_format(const char *arg, struct rev_info *); +extern void userformat_find_requirements(const char *fmt, struct userformat_want *w); extern void format_commit_message(const struct commit *commit, const char *format, struct strbuf *sb, const struct pretty_print_context *context);