X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=config.c;h=dc3148d4566205858869973804de1c2ddb19e981;hb=e4cd6c7a20bfc776086817671d58e09060a8079a;hp=dd2de6e38e8d68d8622ad542e5c73cbcffeceeac;hpb=4b7f59af2a5b072a0a3950c956842e4d6223a167;p=git.git diff --git a/config.c b/config.c index dd2de6e38..dc3148d45 100644 --- a/config.c +++ b/config.c @@ -426,6 +426,11 @@ int git_default_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.editor")) { + editor_program = xstrdup(value); + return 0; + } + /* Add other config variables here and to Documentation/config.txt. */ return 0; }