blob: 3f7b40027b7203985f018e43ab72a6cfc233e8d7 [file] [log] [blame]
Junio C Hamano5f1c3f02006-04-09 01:11:11 -07001#ifndef LOG_TREE_H
2#define LOG_TREE_H
3
Linus Torvaldscd2bdc52006-04-14 16:52:13 -07004#include "revision.h"
Junio C Hamano5f1c3f02006-04-09 01:11:11 -07005
Linus Torvalds91539832006-04-17 11:59:32 -07006struct log_info {
7 struct commit *commit, *parent;
8};
9
Linus Torvaldscd2bdc52006-04-14 16:52:13 -070010void init_log_tree_opt(struct rev_info *);
11int log_tree_diff_flush(struct rev_info *);
12int log_tree_commit(struct rev_info *, struct commit *);
13int log_tree_opt_parse(struct rev_info *, const char **, int);
Adam Simpkins02865652008-04-29 01:32:59 -070014void show_log(struct rev_info *opt);
Linus Torvalds0f3a2902008-10-27 12:51:59 -070015void show_decorations(struct rev_info *opt, struct commit *commit);
Stephen Boyd108dab22009-03-22 19:14:05 -070016void log_write_email_headers(struct rev_info *opt, struct commit *commit,
Junio C Hamano267123b2008-03-15 00:09:20 -070017 const char **subject_p,
18 const char **extra_headers_p,
19 int *need_8bit_cte_p);
Lars Hjemli33e70182009-08-15 16:23:12 +020020void load_ref_decorations(int flags);
Junio C Hamano5f1c3f02006-04-09 01:11:11 -070021
Stephen Boyd6fa8e622009-03-22 19:14:04 -070022#define FORMAT_PATCH_NAME_MAX 64
23void get_patch_filename(struct commit *commit, int nr, const char *suffix,
24 struct strbuf *buf);
25
Junio C Hamano5f1c3f02006-04-09 01:11:11 -070026#endif