]>
Commit | Line | Data |
---|---|---|
d9c66f0b JS |
1 | #ifndef RANGE_DIFF_H |
2 | #define RANGE_DIFF_H | |
3 | ||
c8c5e43a | 4 | #include "diff.h" |
dbbcd44f | 5 | #include "strvec.h" |
c8c5e43a | 6 | |
25668659 ES |
7 | #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60 |
8 | ||
d8981c3f | 9 | /* |
15beaaa3 | 10 | * Compare series of commits in RANGE1 and RANGE2, and emit to the |
d8981c3f JH |
11 | * standard output. NULL can be passed to DIFFOPT to use the built-in |
12 | * default. | |
13 | */ | |
d9c66f0b | 14 | int show_range_diff(const char *range1, const char *range2, |
73a834e9 | 15 | int creation_factor, int dual_color, |
f8675343 | 16 | const struct diff_options *diffopt, |
c972bf4c | 17 | const struct strvec *other_arg); |
d9c66f0b | 18 | |
679b5916 JS |
19 | /* |
20 | * Determine whether the given argument is usable as a range argument of `git | |
21 | * range-diff`, e.g. A..B. Note that this only validates the format but does | |
22 | * _not_ parse it, i.e. it does _not_ look up the specified commits in the | |
23 | * local repository. | |
24 | */ | |
25 | int is_range_diff_range(const char *arg); | |
26 | ||
d9c66f0b | 27 | #endif |