path: root/merge-file.c
diff options
authorJonathan Nieder <>2010-03-21 00:38:58 (GMT)
committerJunio C Hamano <>2010-03-21 03:36:11 (GMT)
commitf01de62e4591a6acc061eb994d44f7eeef7a0cfd (patch)
tree85ede25d7697736056133412abae4739fa79cb36 /merge-file.c
parent4bb0936206b046a4fe606e9b0c9fe6ecc7a0ff69 (diff)
ll_merge(): add ancestor label parameter for diff3-style output
Commands using the ll_merge() function will present conflict hunks imitating ‘diff3 -m’ output if the merge.conflictstyle configuration option is set appropriately. Unlike ‘diff3 -m’, the output does not include a label for the merge base on the ||||||| line of the output, and some tools misparse the conflict hunks without that. Add a new ancestor_label parameter to ll_merge() to give callers the power to rectify this situation. If ancestor_label is NULL, the output format is unchanged. All callers pass NULL for now. Requested-by: Stefan Monnier <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'merge-file.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/merge-file.c b/merge-file.c
index fd34d76..07cc0c9 100644
--- a/merge-file.c
+++ b/merge-file.c
@@ -30,7 +30,7 @@ static void *three_way_filemerge(const char *path, mmfile_t *base, mmfile_t *our
int merge_status;
mmbuffer_t res;
- merge_status = ll_merge(&res, path, base,
+ merge_status = ll_merge(&res, path, base, NULL,
our, ".our", their, ".their", 0);
if (merge_status < 0)
return NULL;