Git fork
at reftables-rust 44 lines 1.4 kB view raw
1#ifndef LOG_TREE_H 2#define LOG_TREE_H 3 4#include "color.h" 5 6struct rev_info; 7 8struct log_info { 9 struct commit *commit, *parent; 10}; 11 12struct decoration_filter { 13 struct string_list *include_ref_pattern; 14 struct string_list *exclude_ref_pattern; 15 struct string_list *exclude_ref_config_pattern; 16}; 17 18struct decoration_options { 19 char *prefix; 20 char *suffix; 21 char *separator; 22 char *pointer; 23 char *tag; 24}; 25 26int parse_decorate_color_config(const char *var, const char *slot_name, const char *value); 27int log_tree_diff_flush(struct rev_info *); 28int log_tree_commit(struct rev_info *, struct commit *); 29void show_log(struct rev_info *opt); 30void format_decorations(struct strbuf *sb, const struct commit *commit, 31 enum git_colorbool use_color, const struct decoration_options *opts); 32void show_decorations(struct rev_info *opt, struct commit *commit); 33void log_write_email_headers(struct rev_info *opt, struct commit *commit, 34 char **extra_headers_p, 35 int *need_8bit_cte_p, 36 int maybe_multipart); 37void load_ref_decorations(struct decoration_filter *filter, int flags); 38void load_branch_decorations(void); 39 40void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *); 41void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *); 42void fmt_output_email_subject(struct strbuf *, struct rev_info *); 43 44#endif