log-tree.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef LOG_TREE_H
  2. #define LOG_TREE_H
  3. #include "revision.h"
  4. struct log_info {
  5. struct commit *commit, *parent;
  6. };
  7. struct decoration_filter {
  8. struct string_list *include_ref_pattern;
  9. struct string_list *exclude_ref_pattern;
  10. struct string_list *exclude_ref_config_pattern;
  11. };
  12. int parse_decorate_color_config(const char *var, const char *slot_name, const char *value);
  13. void init_log_tree_opt(struct rev_info *);
  14. int log_tree_diff_flush(struct rev_info *);
  15. int log_tree_commit(struct rev_info *, struct commit *);
  16. int log_tree_opt_parse(struct rev_info *, const char **, int);
  17. void show_log(struct rev_info *opt);
  18. void format_decorations_extended(struct strbuf *sb, const struct commit *commit,
  19. int use_color,
  20. const char *prefix,
  21. const char *separator,
  22. const char *suffix);
  23. #define format_decorations(strbuf, commit, color) \
  24. format_decorations_extended((strbuf), (commit), (color), " (", ", ", ")")
  25. void show_decorations(struct rev_info *opt, struct commit *commit);
  26. void log_write_email_headers(struct rev_info *opt, struct commit *commit,
  27. const char **extra_headers_p,
  28. int *need_8bit_cte_p,
  29. int maybe_multipart);
  30. void load_ref_decorations(struct decoration_filter *filter, int flags);
  31. #define FORMAT_PATCH_NAME_MAX 64
  32. void fmt_output_commit(struct strbuf *, struct commit *, struct rev_info *);
  33. void fmt_output_subject(struct strbuf *, const char *subject, struct rev_info *);
  34. void fmt_output_email_subject(struct strbuf *, struct rev_info *);
  35. #endif