summaryrefslogtreecommitdiff
path: root/log-tree.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-03-01 11:36:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-01 17:54:42 (GMT)
commit8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610 (patch)
treed8d037bb65dd3873c87b1defb2546a589597984f /log-tree.h
parent3b9e3c2cede15057af3ff8076c45ad5f33829436 (diff)
downloadgit-8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610.zip
git-8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610.tar.gz
git-8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.h b/log-tree.h
index c8116e6..dd75dd7 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