From 8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610 Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Wed, 1 Mar 2017 12:36:38 +0100 Subject: 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 Signed-off-by: Junio C Hamano --- log-tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'log-tree.h') 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 -- cgit v1.3