run_external_diff: refactor cmdline setup logic
commitf3efe78782b36d68dc71a4f48a7bd3381c6b5669
authorJeff King <peff@peff.net>
Sat, 19 Apr 2014 19:22:25 +0000 (19 15:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2014 17:32:19 +0000 (21 10:32 -0700)
treed6420e252b46026fadefe777c95a7ebf6d175fed
parent0d4217d92e3043e23a8960519a51cc7a36ed8914
run_external_diff: refactor cmdline setup logic

The current logic makes it hard to see what gets put onto
the command line in which cases. Pulling out a helper
function lets us see that we have two sets of file data, and
the second set either uses the original name, or the "other"
renamed/copy name.

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