merge-recursive: improve handling for rename/rename(2to1) conflicts
[gitweb.git] / ll-merge.c
index 0e2800f7bb46bdf9e1713d210a5dc1c02fbbaa26..aabc1b5c2e29e25c92c224cc3b58d910f11603d3 100644 (file)
@@ -384,7 +384,9 @@ int ll_merge(mmbuffer_t *result_buf,
        if (opts->virtual_ancestor) {
                if (driver->recursive)
                        driver = find_ll_merge_driver(driver->recursive);
-               marker_size += 2;
+       }
+       if (opts->extra_marker_size) {
+               marker_size += opts->extra_marker_size;
        }
        return driver->fn(driver, result_buf, path, ancestor, ancestor_label,
                          ours, our_label, theirs, their_label,