diff options
author | René Scharfe <l.s.r@web.de> | 2017-03-01 12:36:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-01 09:54:42 -0800 |
commit | 8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610 (patch) | |
tree | d8d037bb65dd3873c87b1defb2546a589597984f /log-tree.h | |
parent | 3b9e3c2cede15057af3ff8076c45ad5f33829436 (diff) | |
download | git-8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610.tar.gz |
log-tree: factor out fmt_output_email_subject()
Use a strbuf to store the subject prefix string and move its
construction into its own function. This gets rid of two arbitrary
length limits and allows the string to be added by callers directly.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
-rw-r--r-- | log-tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.h b/log-tree.h index c8116e60cd..dd75dd7770 100644 --- a/log-tree.h +++ b/log-tree.h @@ -30,5 +30,6 @@ void load_ref_decorations(int flags); #define FORMAT_PATCH_NAME_MAX 64 void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *); void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *); +void fmt_output_email_subject(struct strbuf *, struct rev_info *); #endif |