parse-options-cb: stop clamping "--abbrev=" to hash length
[git/gitster.git] / log-tree.h
blob94978e2c838ce98bdd442006b942cce38e2ef6c8
1 #ifndef LOG_TREE_H
2 #define LOG_TREE_H
4 struct rev_info;
6 struct log_info {
7 struct commit *commit, *parent;
8 };
10 struct decoration_filter {
11 struct string_list *include_ref_pattern;
12 struct string_list *exclude_ref_pattern;
13 struct string_list *exclude_ref_config_pattern;
16 struct decoration_options {
17 char *prefix;
18 char *suffix;
19 char *separator;
20 char *pointer;
21 char *tag;
24 int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
25 int log_tree_diff_flush(struct rev_info *);
26 int log_tree_commit(struct rev_info *, struct commit *);
27 void show_log(struct rev_info *opt);
28 void format_decorations(struct strbuf *sb, const struct commit *commit,
29 int use_color, const struct decoration_options *opts);
30 void show_decorations(struct rev_info *opt, struct commit *commit);
31 void log_write_email_headers(struct rev_info *opt, struct commit *commit,
32 char **extra_headers_p,
33 int *need_8bit_cte_p,
34 int maybe_multipart);
35 void load_ref_decorations(struct decoration_filter *filter, int flags);
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 *);
39 void fmt_output_email_subject(struct strbuf *, struct rev_info *);
41 #endif