git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rerere: fix for merge.conflictstyle
@ 2014-04-30  4:08 Felipe Contreras
  2014-04-30  6:08 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Contreras @ 2014-04-30  4:08 UTC (permalink / raw)
  To: git; +Cc: Jonathan Nieder, Felipe Contreras

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.

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 <felipe.contreras@gmail.com>
---
 builtin/rerere.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/builtin/rerere.c b/builtin/rerere.c
index 4e51add..98eb8c5 100644
--- a/builtin/rerere.c
+++ b/builtin/rerere.c
@@ -60,6 +60,8 @@ int cmd_rerere(int argc, const char **argv, const char *prefix)
 
 	argc = parse_options(argc, argv, prefix, options, rerere_usage, 0);
 
+	git_config(git_xmerge_config, NULL);
+
 	if (autoupdate == 1)
 		flags = RERERE_AUTOUPDATE;
 	if (autoupdate == 0)
-- 
1.9.2+fc1.10.gc7d6c45.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-30 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30  4:08 [PATCH] rerere: fix for merge.conflictstyle Felipe Contreras
2014-04-30  6:08 ` Jeff King
2014-04-30  6:49   ` Felipe Contreras
2014-04-30 14:04   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).