Skip to content

Commit

Permalink
rerere: use ll_merge() instead of using xdl_merge()
Browse files Browse the repository at this point in the history
This allows us to pay attention to the attribute settings and custom
merge driver the user sets up.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jan 17, 2010
1 parent 15b4f7a commit 88533f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rerere.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "cache.h"
#include "string-list.h"
#include "rerere.h"
#include "xdiff/xdiff.h"
#include "xdiff-interface.h"
#include "dir.h"
#include "resolve-undo.h"
Expand Down Expand Up @@ -332,7 +331,6 @@ static int merge(const char *name, const char *path)
int ret;
mmfile_t cur, base, other;
mmbuffer_t result = {NULL, 0};
xmparam_t xmp = {{XDF_NEED_MINIMAL}};

if (handle_file(path, NULL, rerere_path(name, "thisimage")) < 0)
return 1;
Expand All @@ -341,8 +339,7 @@ static int merge(const char *name, const char *path)
read_mmfile(&base, rerere_path(name, "preimage")) ||
read_mmfile(&other, rerere_path(name, "postimage")))
return 1;
ret = xdl_merge(&base, &cur, "", &other, "",
&xmp, XDL_MERGE_ZEALOUS, &result);
ret = ll_merge(&result, path, &base, &cur, "", &other, "", 0);
if (!ret) {
FILE *f = fopen(path, "w");
if (!f)
Expand Down

0 comments on commit 88533f6

Please sign in to comment.