xdl_merge(): introduce xmparam_t for merge specific parameters

So far we have only needed to be able to pass an option that is generic to
xdiff family of functions to this function.  Extend the interface so that
we can give it merge specific parameters.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2010-01-16 21:01:28 -08:00
parent 7fb0eaa289
commit 00f8f97d30
6 changed files with 17 additions and 12 deletions

View File

@ -27,12 +27,12 @@ static void free_mmfile(mmfile_t *f)
static void *three_way_filemerge(mmfile_t *base, mmfile_t *our, mmfile_t *their, unsigned long *size)
{
mmbuffer_t res;
xpparam_t xpp;
xmparam_t xmp;
int merge_status;
memset(&xpp, 0, sizeof(xpp));
memset(&xmp, 0, sizeof(xmp));
merge_status = xdl_merge(base, our, ".our", their, ".their",
&xpp, XDL_MERGE_ZEALOUS, &res);
&xmp, XDL_MERGE_ZEALOUS, &res);
if (merge_status < 0)
return NULL;