summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/range-diff.c2
-rw-r--r--range-diff.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/builtin/range-diff.c b/builtin/range-diff.c
index f52d45d9d6..006e766726 100644
--- a/builtin/range-diff.c
+++ b/builtin/range-diff.c
@@ -18,7 +18,7 @@ static struct strbuf *output_prefix_cb(struct diff_options *opt, void *data)
int cmd_range_diff(int argc, const char **argv, const char *prefix)
{
- int creation_factor = 60;
+ int creation_factor = RANGE_DIFF_CREATION_FACTOR_DEFAULT;
struct diff_options diffopt = { NULL };
int simple_color = -1;
struct option options[] = {
diff --git a/range-diff.h b/range-diff.h
index 2407d46a30..f26de5d0b0 100644
--- a/range-diff.h
+++ b/range-diff.h
@@ -3,6 +3,8 @@
#include "diff.h"
+#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
+
int show_range_diff(const char *range1, const char *range2,
int creation_factor, struct diff_options *diffopt);