blob: 583ced2e8e749003b9a22fe2496d0db49f5ba7f9 [file] [log] [blame]
Johannes Schindelind9c66f02018-08-13 04:33:04 -07001#ifndef RANGE_DIFF_H
2#define RANGE_DIFF_H
3
Johannes Schindelinc8c5e432018-08-13 04:33:07 -07004#include "diff.h"
Jeff Kingdbbcd442020-07-28 16:23:39 -04005#include "strvec.h"
Johannes Schindelinc8c5e432018-08-13 04:33:07 -07006
Eric Sunshine25668652018-07-22 05:57:11 -04007#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
8
Junio C Hamanod8981c32018-11-30 13:27:11 +09009/*
Elijah Newren15beaaa2019-11-05 17:07:23 +000010 * Compare series of commits in RANGE1 and RANGE2, and emit to the
Junio C Hamanod8981c32018-11-30 13:27:11 +090011 * standard output. NULL can be passed to DIFFOPT to use the built-in
12 * default.
13 */
Johannes Schindelind9c66f02018-08-13 04:33:04 -070014int show_range_diff(const char *range1, const char *range2,
Eric Sunshine73a834e2018-07-22 05:57:12 -040015 int creation_factor, int dual_color,
Denton Liuf8675342019-12-06 12:16:26 -080016 const struct diff_options *diffopt,
Jeff Kingc972bf42020-07-28 16:25:12 -040017 const struct strvec *other_arg);
Johannes Schindelind9c66f02018-08-13 04:33:04 -070018
19#endif