blob: c8116e60cde34032da6f2044881d5a4970cd96fe [file] [log] [blame]
Junio C Hamano5f1c3f02006-04-09 01:11:11 -07001#ifndef LOG_TREE_H
2#define LOG_TREE_H
3
Linus Torvaldscd2bdc52006-04-14 16:52:13 -07004#include "revision.h"
Junio C Hamano5f1c3f02006-04-09 01:11:11 -07005
Linus Torvalds91539832006-04-17 11:59:32 -07006struct log_info {
7 struct commit *commit, *parent;
8};
9
Jonathan Nieder88521172014-10-07 15:16:57 -040010int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
Linus Torvaldscd2bdc52006-04-14 16:52:13 -070011void init_log_tree_opt(struct rev_info *);
12int log_tree_diff_flush(struct rev_info *);
13int log_tree_commit(struct rev_info *, struct commit *);
14int log_tree_opt_parse(struct rev_info *, const char **, int);
Adam Simpkins02865652008-04-29 01:32:59 -070015void show_log(struct rev_info *opt);
Harry Jeffery92710952014-09-18 21:53:53 +010016void format_decorations_extended(struct strbuf *sb, const struct commit *commit,
17 int use_color,
18 const char *prefix,
19 const char *separator,
20 const char *suffix);
21#define format_decorations(strbuf, commit, color) \
22 format_decorations_extended((strbuf), (commit), (color), " (", ", ", ")")
Linus Torvalds0f3a2902008-10-27 12:51:59 -070023void show_decorations(struct rev_info *opt, struct commit *commit);
Stephen Boyd108dab22009-03-22 19:14:05 -070024void log_write_email_headers(struct rev_info *opt, struct commit *commit,
Junio C Hamano267123b2008-03-15 00:09:20 -070025 const char **subject_p,
26 const char **extra_headers_p,
27 int *need_8bit_cte_p);
Lars Hjemli33e70182009-08-15 16:23:12 +020028void load_ref_decorations(int flags);
Junio C Hamano5f1c3f02006-04-09 01:11:11 -070029
Stephen Boyd6fa8e622009-03-22 19:14:04 -070030#define FORMAT_PATCH_NAME_MAX 64
Junio C Hamanod28b5d42012-12-21 22:06:01 -080031void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *);
32void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *);
Stephen Boyd6fa8e622009-03-22 19:14:04 -070033
Junio C Hamano5f1c3f02006-04-09 01:11:11 -070034#endif