]>
Commit | Line | Data |
---|---|---|
5f1c3f07 JH |
1 | #ifndef LOG_TREE_H |
2 | #define LOG_TREE_H | |
3 | ||
0fd2e215 | 4 | struct rev_info; |
5f1c3f07 | 5 | |
91539833 LT |
6 | struct log_info { |
7 | struct commit *commit, *parent; | |
8 | }; | |
9 | ||
65516f58 | 10 | struct decoration_filter { |
a6be5e67 DS |
11 | struct string_list *include_ref_pattern; |
12 | struct string_list *exclude_ref_pattern; | |
13 | struct string_list *exclude_ref_config_pattern; | |
65516f58 RA |
14 | }; |
15 | ||
a3883a65 AK |
16 | struct decoration_options { |
17 | char *prefix; | |
18 | char *suffix; | |
19 | char *separator; | |
f1f8a258 AK |
20 | char *pointer; |
21 | char *tag; | |
a3883a65 AK |
22 | }; |
23 | ||
8852117a | 24 | int parse_decorate_color_config(const char *var, const char *slot_name, const char *value); |
cd2bdc53 LT |
25 | int log_tree_diff_flush(struct rev_info *); |
26 | int log_tree_commit(struct rev_info *, struct commit *); | |
02865655 | 27 | void show_log(struct rev_info *opt); |
a3883a65 AK |
28 | void format_decorations(struct strbuf *sb, const struct commit *commit, |
29 | int use_color, const struct decoration_options *opts); | |
0f3a290b | 30 | void show_decorations(struct rev_info *opt, struct commit *commit); |
108dab28 | 31 | void log_write_email_headers(struct rev_info *opt, struct commit *commit, |
267123b4 | 32 | const char **extra_headers_p, |
50cd54ef | 33 | int *need_8bit_cte_p, |
34 | int maybe_multipart); | |
65516f58 | 35 | void load_ref_decorations(struct decoration_filter *filter, int flags); |
5f1c3f07 | 36 | |
d28b5d47 JH |
37 | void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *); |
38 | void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *); | |
8ffc8dc6 | 39 | void fmt_output_email_subject(struct strbuf *, struct rev_info *); |
6fa8e627 | 40 | |
5f1c3f07 | 41 | #endif |