Docs: send-email: --chain_reply_to -> --[no-]chain-reply-to
[gitweb.git] / xdiff-interface.c
index 6c6bb19973475d9db7dfc18d5695c1bf3ec7359e..8bab82ed7fd1fcfea4dd13f6d020476758a18031 100644 (file)
@@ -252,3 +252,23 @@ void xdiff_set_find_func(xdemitconf_t *xecfg, const char *value, int cflags)
                value = ep + 1;
        }
 }
+
+int git_xmerge_style = -1;
+
+int git_xmerge_config(const char *var, const char *value, void *cb)
+{
+       if (!strcasecmp(var, "merge.conflictstyle")) {
+               if (!value)
+                       die("'%s' is not a boolean", var);
+               if (!strcmp(value, "diff3"))
+                       git_xmerge_style = XDL_MERGE_DIFF3;
+               else if (!strcmp(value, "merge"))
+                       git_xmerge_style = 0;
+               else
+                       die("unknown style '%s' given for '%s'",
+                           value, var);
+               return 0;
+       }
+       return git_default_config(var, value, cb);
+}
+