xdl_merge(): move file1 and file2 labels to xmparam structure
commita4b5e91c49238146f4cb85ff5f7f3bc97e0e51de
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 21 Mar 2010 00:35:18 +0000 (20 19:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Mar 2010 03:36:10 +0000 (20 20:36 -0700)
tree3870b41f8a7cd493288400d14657db961e409fe4
parent8a161433a0b414d15093e312eb9be99587074309
xdl_merge(): move file1 and file2 labels to xmparam structure

The labels for the three participants in a potential conflict are all
optional arguments for the xdiff merge routine; if they are NULL, then
xdl_merge() can cope by omitting the labels from its output.  Move
them to the xmparam structure to allow new callers to save some
keystrokes where they are not needed.

This also has the virtue of making the xdiff merge interface more
similar to merge_trees, which might make it easier to learn.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge-file.c
ll-merge.c
xdiff/xdiff.h
xdiff/xmerge.c