| Junio C Hamano | 5f1c3f0 | 2006-04-09 08:11:11 | [diff] [blame] | 1 | #ifndef LOG_TREE_H |
| 2 | #define LOG_TREE_H |
| 3 | |
| Linus Torvalds | cd2bdc5 | 2006-04-14 23:52:13 | [diff] [blame] | 4 | #include "revision.h" |
| Junio C Hamano | 5f1c3f0 | 2006-04-09 08:11:11 | [diff] [blame] | 5 | |
| Linus Torvalds | 9153983 | 2006-04-17 18:59:32 | [diff] [blame] | 6 | struct log_info { |
| 7 | struct commit *commit, *parent; |
| 8 | }; |
| 9 | |
| Jonathan Nieder | 8852117 | 2014-10-07 19:16:57 | [diff] [blame] | 10 | int parse_decorate_color_config(const char *var, const char *slot_name, const char *value); |
| Linus Torvalds | cd2bdc5 | 2006-04-14 23:52:13 | [diff] [blame] | 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); |
| Adam Simpkins | 0286565 | 2008-04-29 08:32:59 | [diff] [blame] | 15 | void show_log(struct rev_info *opt); |
| Harry Jeffery | 9271095 | 2014-09-18 20:53:53 | [diff] [blame] | 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), " (", ", ", ")") |
| Linus Torvalds | 0f3a290 | 2008-10-27 19:51:59 | [diff] [blame] | 23 | void show_decorations(struct rev_info *opt, struct commit *commit); |
| Stephen Boyd | 108dab2 | 2009-03-23 02:14:05 | [diff] [blame] | 24 | void log_write_email_headers(struct rev_info *opt, struct commit *commit, |
| Junio C Hamano | 267123b | 2008-03-15 07:09:20 | [diff] [blame] | 25 | const char **subject_p, |
| 26 | const char **extra_headers_p, |
| 27 | int *need_8bit_cte_p); |
| Lars Hjemli | 33e7018 | 2009-08-15 14:23:12 | [diff] [blame] | 28 | void load_ref_decorations(int flags); |
| Junio C Hamano | 5f1c3f0 | 2006-04-09 08:11:11 | [diff] [blame] | 29 | |
| Stephen Boyd | 6fa8e62 | 2009-03-23 02:14:04 | [diff] [blame] | 30 | #define FORMAT_PATCH_NAME_MAX 64 |
| Junio C Hamano | d28b5d4 | 2012-12-22 06:06:01 | [diff] [blame] | 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 *); |
| Stephen Boyd | 6fa8e62 | 2009-03-23 02:14:04 | [diff] [blame] | 33 | |
| Junio C Hamano | 5f1c3f0 | 2006-04-09 08:11:11 | [diff] [blame] | 34 | #endif |