X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=b3c3bb70c5e737ed18df7ca665c85e339e1f3292;hb=ac9666f84a597973ef29dc7f0f7edcb3e1a3aa45;hp=659c87c3ee90c23064f617e3bcf3ace12e32ea04;hpb=276e017f2f632e9bd954bd5a6b794fe0865a5f37;p=git.git diff --git a/commit.h b/commit.h index 659c87c3e..b3c3bb70c 100644 --- a/commit.h +++ b/commit.h @@ -68,8 +68,7 @@ enum cmit_fmt { CMIT_FMT_UNSPECIFIED }; -struct pretty_print_context -{ +struct pretty_print_context { int abbrev; const char *subject; const char *after_subject; @@ -91,6 +90,8 @@ extern char *logmsg_reencode(const struct commit *commit, 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 const char *format_subject(struct strbuf *sb, const char *msg, + const char *line_separator); 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,