X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=config.c;h=dc3148d4566205858869973804de1c2ddb19e981;hb=265ae188267fda441f92e513fb89641f78e982fd;hp=dd2de6e38e8d68d8622ad542e5c73cbcffeceeac;hpb=6cbf973c9a6f06e9c45b3f6a76f0ceae8e7fd291;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; }