Merge branch 'jc/logopt' into next
[git.git] / log-tree.h
1 #ifndef LOG_TREE_H
2 #define LOG_TREE_H
3
4 #include "revision.h"
5
6 struct log_tree_opt {
7         struct diff_options diffopt;
8         int show_root_diff;
9         int no_commit_id;
10         int verbose_header;
11         int ignore_merges;
12         int combine_merges;
13         int dense_combined_merges;
14         int always_show_header;
15         const char *header_prefix;
16         const char *header;
17         enum cmit_fmt commit_format;
18 };
19
20 void init_log_tree_opt(struct log_tree_opt *);
21 int log_tree_diff_flush(struct log_tree_opt *);
22 int log_tree_commit(struct log_tree_opt *, struct commit *);
23 int log_tree_opt_parse(struct log_tree_opt *, const char **, int);
24
25 struct whatchanged_opt {
26         struct rev_info revopt;
27         struct log_tree_opt logopt;
28         int abbrev;
29         int abbrev_commit;
30         int do_diff;
31         int full_diff;
32 };
33
34 int parse_whatchanged_opt(int, const char **, struct whatchanged_opt *);
35
36 #endif