Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
launch_editor(): Heed GIT_EDITOR and core.editor settings
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index f89a61191591c1242ba8fb3ac5b03330cdb1c06b..103b4fcc61192d18c63b198a5eb37bbdf154a6b0 100644
(file)
--- 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;
}