X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=config.c;h=34584f62b40ef256d1d0f75e2ee16ed30b1c11fa;hb=562051809589574576971c53c23aad93f8c395d9;hp=0c43d7615b68cb41b60a140bdcf26559b24cc3e0;hpb=56fc63193975edd4b9f520b6c65c2b97ecd8ee38;p=git.git diff --git a/config.c b/config.c index 0c43d761..34584f62 100644 --- a/config.c +++ b/config.c @@ -11,7 +11,7 @@ #define MAXNAME (256) static FILE *config_file; -static char *config_file_name; +static const char *config_file_name; static int config_linenr; static int get_next_char(void) { @@ -237,6 +237,11 @@ int git_default_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "i18n.commitencoding")) { + strncpy(git_commit_encoding, value, sizeof(git_commit_encoding)); + return 0; + } + /* Add other config variables here.. */ return 0; }