combine-diff: move show_log_first logic/action out of paths scanning
commit51af1886c73f12b1e020db1aa03525e2d74bed93
authorKirill Smelkov <kirr@mns.spb.ru>
Mon, 3 Feb 2014 12:47:19 +0000 (3 16:47 +0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 22:46:11 +0000 (24 14:46 -0800)
tree03ad8f172d72fdf21f5d2203196ee152385e5d4a
parentfce135c4ffc87f85e1c3b5c57a6d9e1abdbd074d
combine-diff: move show_log_first logic/action out of paths scanning

Judging from sample outputs and tests nothing changes in diff -c output,
and this change will help later patches, when we'll be refactoring paths
scanning into its own function with several variants - the
show_log_first logic / code will stay common to all of them.

NOTE: only now we have to take care to explicitly not show anything if
    parents array is empty, as in fact there are some clients in Git code,
    which calls diff_tree_combined() in such a way.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c