blob: f2ab0e0085ada6509c02427503b1ea04b18951e0 [file] [log] [blame]
Junio C Hamano898eacd2011-10-06 23:12:09 -07001#ifndef FMT_MERGE_MSG_H
2#define FMT_MERGE_MSG_H
3
Denton Liuce6521e2020-03-23 21:07:51 -04004#include "strbuf.h"
5
6#define DEFAULT_MERGE_LOG_LEN 20
7
8struct fmt_merge_msg_opts {
9 unsigned add_title:1,
10 credit_people:1;
11 int shortlog_len;
12};
13
Junio C Hamano898eacd2011-10-06 23:12:09 -070014extern int merge_log_config;
Denton Liu55454422019-04-29 04:28:14 -040015int fmt_merge_msg_config(const char *key, const char *value, void *cb);
Denton Liuce6521e2020-03-23 21:07:51 -040016int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
17 struct fmt_merge_msg_opts *);
18
Junio C Hamano898eacd2011-10-06 23:12:09 -070019
20#endif /* FMT_MERGE_MSG_H */