author | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 21 Mar 2010 00:35:18 +0000 (19:35 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 21 Mar 2010 03:36:10 +0000 (20:36 -0700) | ||
commit | a4b5e91c49238146f4cb85ff5f7f3bc97e0e51de | |
tree | 3870b41f8a7cd493288400d14657db961e409fe4 | tree | snapshot |
parent | 8a161433a0b414d15093e312eb9be99587074309 | commit | diff |
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>
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 | diff | blob | history | |
ll-merge.c | diff | blob | history | |
xdiff/xdiff.h | diff | blob | history | |
xdiff/xmerge.c | diff | blob | history |