]> git.ipfire.org Git - thirdparty/git.git/blame - log-tree.h
reftable: reject 0 object_id_len
[thirdparty/git.git] / log-tree.h
CommitLineData
5f1c3f07
JH
1#ifndef LOG_TREE_H
2#define LOG_TREE_H
3
cd2bdc53 4#include "revision.h"
5f1c3f07 5
91539833
LT
6struct log_info {
7 struct commit *commit, *parent;
8};
9
65516f58 10struct 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
8852117a 16int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
cd2bdc53
LT
17int log_tree_diff_flush(struct rev_info *);
18int log_tree_commit(struct rev_info *, struct commit *);
02865655 19void show_log(struct rev_info *opt);
9271095c
HJ
20void format_decorations_extended(struct strbuf *sb, const struct commit *commit,
21 int use_color,
22 const char *prefix,
23 const char *separator,
24 const char *suffix);
25#define format_decorations(strbuf, commit, color) \
26 format_decorations_extended((strbuf), (commit), (color), " (", ", ", ")")
0f3a290b 27void show_decorations(struct rev_info *opt, struct commit *commit);
108dab28 28void log_write_email_headers(struct rev_info *opt, struct commit *commit,
267123b4 29 const char **extra_headers_p,
50cd54ef 30 int *need_8bit_cte_p,
31 int maybe_multipart);
65516f58 32void load_ref_decorations(struct decoration_filter *filter, int flags);
5f1c3f07 33
d28b5d47
JH
34void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *);
35void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *);
8ffc8dc6 36void fmt_output_email_subject(struct strbuf *, struct rev_info *);
6fa8e627 37
5f1c3f07 38#endif