run_external_diff: hoist common bits out of conditional
commit0d4217d92e3043e23a8960519a51cc7a36ed8914
authorJeff King <peff@peff.net>
Sat, 19 Apr 2014 19:20:46 +0000 (19 15:20 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2014 17:32:07 +0000 (21 10:32 -0700)
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