Skip to content

Commit 4bc1792

Browse files
peffgitster
authored andcommitted
diff: drop complete_rewrite parameter from run_external_diff()
Our builtin_diff() wants to know whether break-detection found a complete rewrite, because it changes how the diff is shown. However, when calling out to an external diff, we don't pass this information along (and doing so would require designing a new interface to the user-provided program). Let's drop the unused parameter to make this fact more clear. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 19b9046 commit 4bc1792

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

diff.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4178,7 +4178,6 @@ static void run_external_diff(const char *pgm,
41784178
struct diff_filespec *one,
41794179
struct diff_filespec *two,
41804180
const char *xfrm_msg,
4181-
int complete_rewrite,
41824181
struct diff_options *o)
41834182
{
41844183
struct argv_array argv = ARGV_ARRAY_INIT;
@@ -4336,8 +4335,7 @@ static void run_diff_cmd(const char *pgm,
43364335
}
43374336

43384337
if (pgm) {
4339-
run_external_diff(pgm, name, other, one, two, xfrm_msg,
4340-
complete_rewrite, o);
4338+
run_external_diff(pgm, name, other, one, two, xfrm_msg, o);
43414339
return;
43424340
}
43434341
if (one && two)

0 commit comments

Comments
 (0)