Skip to content

Commit de3d8bb

Browse files
felipecgitster
authored andcommitted
rerere: fix for merge.conflictstyle
If we use a different conflict style `git rerere forget` is not able to find the matching conflict SHA-1 because the diff generated is actually different from what `git merge` generated, due to the XDL_MERGE_* option differences among the codepaths. The fix is to call git_xmerge_config() so that git_xmerge_style is set properly and the diffs match. Signed-off-by: Felipe Contreras <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bbc4e8 commit de3d8bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/rerere.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ int cmd_rerere(int argc, const char **argv, const char *prefix)
6060

6161
argc = parse_options(argc, argv, prefix, options, rerere_usage, 0);
6262

63+
git_config(git_xmerge_config, NULL);
64+
6365
if (autoupdate == 1)
6466
flags = RERERE_AUTOUPDATE;
6567
if (autoupdate == 0)

0 commit comments

Comments
 (0)