Merge branch 'jc/decorate-leaky-separator-color' into HEAD
[git/mjg.git] / log-tree.h
blobc8116e60cde34032da6f2044881d5a4970cd96fe
1 #ifndef LOG_TREE_H
2 #define LOG_TREE_H
4 #include "revision.h"
6 struct log_info {
7 struct commit *commit, *parent;
8 };
10 int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
11 void init_log_tree_opt(struct rev_info *);
12 int log_tree_diff_flush(struct rev_info *);
13 int log_tree_commit(struct rev_info *, struct commit *);
14 int log_tree_opt_parse(struct rev_info *, const char **, int);
15 void show_log(struct rev_info *opt);
16 void 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), " (", ", ", ")")
23 void show_decorations(struct rev_info *opt, struct commit *commit);
24 void log_write_email_headers(struct rev_info *opt, struct commit *commit,
25 const char **subject_p,
26 const char **extra_headers_p,
27 int *need_8bit_cte_p);
28 void load_ref_decorations(int flags);
30 #define FORMAT_PATCH_NAME_MAX 64
31 void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *);
32 void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *);
34 #endif