X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=26ec8c0d1cebcf5e79564be690517cd2eb9c6413;hb=97b03c353856602a3c30b01baae1efb8dfe4243e;hp=24128d7a2a0007d5aee2543624f0297d77860ea6;hpb=533e8af50ed6e89eabc421478c9021c4da5f404d;p=git.git diff --git a/commit.h b/commit.h index 24128d7a2..26ec8c0d1 100644 --- a/commit.h +++ b/commit.h @@ -70,14 +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; }; +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);