range-diff: combine all options in a single data structure
[git] / range-diff.h
1 #ifndef RANGE_DIFF_H
2 #define RANGE_DIFF_H
3
4 #include "diff.h"
5 #include "strvec.h"
6
7 #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
8
9 struct range_diff_options {
10         int creation_factor;
11         unsigned dual_color:1;
12         const struct diff_options *diffopt; /* may be NULL */
13         const struct strvec *other_arg; /* may be NULL */
14 };
15
16 /*
17  * Compare series of commits in `range1` and `range2`, and emit to the
18  * standard output.
19  */
20 int show_range_diff(const char *range1, const char *range2,
21                     struct range_diff_options *opts);
22
23 #endif