blob: 73ca3e44652204867457092954d6f9d9ff04ad95 [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;
Glen Chooa4e7e312023-06-28 19:26:22 +000016int fmt_merge_msg_config(const char *key, const char *value,
17 const struct config_context *ctx, void *cb);
Denton Liuce6521e2020-03-23 21:07:51 -040018int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
19 struct fmt_merge_msg_opts *);
20
Junio C Hamano898eacd2011-10-06 23:12:09 -070021
22#endif /* FMT_MERGE_MSG_H */