Junio C Hamano | 5f1c3f0 | 2006-04-09 01:11:11 -0700 | [diff] [blame] | 1 | #ifndef LOG_TREE_H |
| 2 | #define LOG_TREE_H |
| 3 | |
Linus Torvalds | cd2bdc5 | 2006-04-14 16:52:13 -0700 | [diff] [blame] | 4 | #include "revision.h" |
Junio C Hamano | 5f1c3f0 | 2006-04-09 01:11:11 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 9153983 | 2006-04-17 11:59:32 -0700 | [diff] [blame] | 6 | struct log_info { |
| 7 | struct commit *commit, *parent; |
| 8 | }; |
| 9 | |
Rafael Ascensão | 65516f5 | 2017-11-21 21:33:41 +0000 | [diff] [blame] | 10 | struct decoration_filter { |
Derrick Stolee | a6be5e6 | 2020-04-16 14:15:49 +0000 | [diff] [blame] | 11 | struct string_list *include_ref_pattern; |
| 12 | struct string_list *exclude_ref_pattern; |
| 13 | struct string_list *exclude_ref_config_pattern; |
Rafael Ascensão | 65516f5 | 2017-11-21 21:33:41 +0000 | [diff] [blame] | 14 | }; |
| 15 | |
Jonathan Nieder | 8852117 | 2014-10-07 15:16:57 -0400 | [diff] [blame] | 16 | int parse_decorate_color_config(const char *var, const char *slot_name, const char *value); |
Linus Torvalds | cd2bdc5 | 2006-04-14 16:52:13 -0700 | [diff] [blame] | 17 | void init_log_tree_opt(struct rev_info *); |
| 18 | int log_tree_diff_flush(struct rev_info *); |
| 19 | int log_tree_commit(struct rev_info *, struct commit *); |
| 20 | int log_tree_opt_parse(struct rev_info *, const char **, int); |
Adam Simpkins | 0286565 | 2008-04-29 01:32:59 -0700 | [diff] [blame] | 21 | void show_log(struct rev_info *opt); |
Harry Jeffery | 9271095 | 2014-09-18 21:53:53 +0100 | [diff] [blame] | 22 | void format_decorations_extended(struct strbuf *sb, const struct commit *commit, |
| 23 | int use_color, |
| 24 | const char *prefix, |
| 25 | const char *separator, |
| 26 | const char *suffix); |
| 27 | #define format_decorations(strbuf, commit, color) \ |
| 28 | format_decorations_extended((strbuf), (commit), (color), " (", ", ", ")") |
Linus Torvalds | 0f3a290 | 2008-10-27 12:51:59 -0700 | [diff] [blame] | 29 | void show_decorations(struct rev_info *opt, struct commit *commit); |
Stephen Boyd | 108dab2 | 2009-03-22 19:14:05 -0700 | [diff] [blame] | 30 | void log_write_email_headers(struct rev_info *opt, struct commit *commit, |
Junio C Hamano | 267123b | 2008-03-15 00:09:20 -0700 | [diff] [blame] | 31 | const char **extra_headers_p, |
brian m. carlson | 50cd54e | 2018-05-02 02:20:52 +0000 | [diff] [blame] | 32 | int *need_8bit_cte_p, |
| 33 | int maybe_multipart); |
Rafael Ascensão | 65516f5 | 2017-11-21 21:33:41 +0000 | [diff] [blame] | 34 | void load_ref_decorations(struct decoration_filter *filter, int flags); |
Junio C Hamano | 5f1c3f0 | 2006-04-09 01:11:11 -0700 | [diff] [blame] | 35 | |
Stephen Boyd | 6fa8e62 | 2009-03-22 19:14:04 -0700 | [diff] [blame] | 36 | #define FORMAT_PATCH_NAME_MAX 64 |
Junio C Hamano | d28b5d4 | 2012-12-21 22:06:01 -0800 | [diff] [blame] | 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 *); |
René Scharfe | 8ffc8dc | 2017-03-01 12:36:38 +0100 | [diff] [blame] | 39 | void fmt_output_email_subject(struct strbuf *, struct rev_info *); |
Stephen Boyd | 6fa8e62 | 2009-03-22 19:14:04 -0700 | [diff] [blame] | 40 | |
Junio C Hamano | 5f1c3f0 | 2006-04-09 01:11:11 -0700 | [diff] [blame] | 41 | #endif |