range-diff(docs): explain how to specify commit ranges
[git/debian.git] / range-diff.h
blob4abd70c40fed668b80ad935668c026c0ddbf9ce8
1 #ifndef RANGE_DIFF_H
2 #define RANGE_DIFF_H
4 #include "diff.h"
5 #include "strvec.h"
7 #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
9 /*
10 * Compare series of commits in RANGE1 and RANGE2, and emit to the
11 * standard output. NULL can be passed to DIFFOPT to use the built-in
12 * default.
14 int show_range_diff(const char *range1, const char *range2,
15 int creation_factor, int dual_color,
16 const struct diff_options *diffopt,
17 const struct strvec *other_arg);
20 * Determine whether the given argument is usable as a range argument of `git
21 * range-diff`, e.g. A..B.
23 int is_range_diff_range(const char *arg);
25 #endif