diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:24 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-10 13:24:24 -0800 |
commit | 0a246106802b147ad81626f52c0aaa37398ba918 (patch) | |
tree | b15fe8d0ddbbd14775c6fb430a96a80b2404f213 /commit.h | |
parent | 44c3f09fa501ccd83e3362080a99ad4b46cda127 (diff) | |
parent | 6d167fd7ccb84f07a0bd57d8e188a651e913b158 (diff) | |
download | git-0a246106802b147ad81626f52c0aaa37398ba918.tar.gz |
Merge branch 'rs/log-email-subject'
Code clean-up.
* rs/log-email-subject:
pretty: use fmt_output_email_subject()
log-tree: factor out fmt_output_email_subject()
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -142,21 +142,24 @@ static inline int cmit_fmt_is_mail(enum cmit_fmt fmt) return (fmt == CMIT_FMT_EMAIL || fmt == CMIT_FMT_MBOXRD); } +struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ + struct pretty_print_context { /* * Callers should tweak these to change the behavior of pp_* functions. */ enum cmit_fmt fmt; int abbrev; - const char *subject; const char *after_subject; int preserve_subject; struct date_mode date_mode; unsigned date_mode_explicit:1; + int print_email_subject; int expand_tabs_in_log; int need_8bit_cte; char *notes_message; struct reflog_walk_info *reflog_info; + struct rev_info *rev; const char *output_encoding; struct string_list *mailmap; int color; @@ -175,7 +178,6 @@ struct userformat_want { }; extern int has_non_ascii(const char *text); -struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ extern const char *logmsg_reencode(const struct commit *commit, char **commit_encoding, const char *output_encoding); |