Skip to content

Commit 88533f6

Browse files
committed
rerere: use ll_merge() instead of using xdl_merge()
This allows us to pay attention to the attribute settings and custom merge driver the user sets up. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 15b4f7a commit 88533f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rerere.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "cache.h"
22
#include "string-list.h"
33
#include "rerere.h"
4-
#include "xdiff/xdiff.h"
54
#include "xdiff-interface.h"
65
#include "dir.h"
76
#include "resolve-undo.h"
@@ -332,7 +331,6 @@ static int merge(const char *name, const char *path)
332331
int ret;
333332
mmfile_t cur, base, other;
334333
mmbuffer_t result = {NULL, 0};
335-
xmparam_t xmp = {{XDF_NEED_MINIMAL}};
336334

337335
if (handle_file(path, NULL, rerere_path(name, "thisimage")) < 0)
338336
return 1;
@@ -341,8 +339,7 @@ static int merge(const char *name, const char *path)
341339
read_mmfile(&base, rerere_path(name, "preimage")) ||
342340
read_mmfile(&other, rerere_path(name, "postimage")))
343341
return 1;
344-
ret = xdl_merge(&base, &cur, "", &other, "",
345-
&xmp, XDL_MERGE_ZEALOUS, &result);
342+
ret = ll_merge(&result, path, &base, &cur, "", &other, "", 0);
346343
if (!ret) {
347344
FILE *f = fopen(path, "w");
348345
if (!f)

0 commit comments

Comments
 (0)