blob: 99054042dc5e574b2ef1c00394331955239e0324 [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;
Junio C Hamanobd2bc942021-12-20 14:53:43 -080012 const char *into_name;
Denton Liuce6521e2020-03-23 21:07:51 -040013};
14
Junio C Hamano898eacd2011-10-06 23:12:09 -070015extern int merge_log_config;
Denton Liu55454422019-04-29 04:28:14 -040016int fmt_merge_msg_config(const char *key, const char *value, void *cb);
Denton Liuce6521e2020-03-23 21:07:51 -040017int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
18 struct fmt_merge_msg_opts *);
19
Junio C Hamano898eacd2011-10-06 23:12:09 -070020
21#endif /* FMT_MERGE_MSG_H */