]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
run_external_diff: hoist common bits out of conditional
authorJeff King <peff@peff.net>
Sat, 19 Apr 2014 19:20:46 +0000 (15:20 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2014 17:32:07 +0000 (10:32 -0700)
commit0d4217d92e3043e23a8960519a51cc7a36ed8914
treea852984463c509cd61e32a135a6eff0931fc7c61
parent5b88caa417ab221c8f8576332fba8d41dd3986d7
run_external_diff: hoist common bits out of conditional

Whether we have diff_filespecs to give to the diff command
or not, we always are going to run the program and pass it
the pathname. Let's pull that duplicated part out of the
conditional to make it more obvious.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c