diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-16 21:01:28 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-16 21:33:13 -0800 |
commit | 00f8f97d30be7992c16bc466532cb591e00314bf (patch) | |
tree | 71879ad314076541471bb4ab83d13bdcf74ee02c /builtin-merge-file.c | |
parent | 7fb0eaa289576a1dcd7751015ba791f1bce778a9 (diff) | |
download | git-00f8f97d30be7992c16bc466532cb591e00314bf.tar.gz |
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>
Diffstat (limited to 'builtin-merge-file.c')
-rw-r--r-- | builtin-merge-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-merge-file.c b/builtin-merge-file.c index afd2ea7a73..11c3524a77 100644 --- a/builtin-merge-file.c +++ b/builtin-merge-file.c @@ -25,7 +25,7 @@ int cmd_merge_file(int argc, const char **argv, const char *prefix) const char *names[3] = { NULL, NULL, NULL }; mmfile_t mmfs[3]; mmbuffer_t result = {NULL, 0}; - xpparam_t xpp = {XDF_NEED_MINIMAL}; + xmparam_t xmp = {{XDF_NEED_MINIMAL}}; int ret = 0, i = 0, to_stdout = 0; int merge_level = XDL_MERGE_ZEALOUS_ALNUM; int merge_style = 0, quiet = 0; @@ -68,7 +68,7 @@ int cmd_merge_file(int argc, const char **argv, const char *prefix) } ret = xdl_merge(mmfs + 1, mmfs + 0, names[0], mmfs + 2, names[2], - &xpp, merge_level | merge_style, &result); + &xmp, merge_level | merge_style, &result); for (i = 0; i < 3; i++) free(mmfs[i].ptr); |