diff options
Diffstat (limited to 'environment.c')
-rw-r--r-- | environment.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 92e16b19b2..76e4dee273 100644 --- a/environment.c +++ b/environment.c @@ -193,3 +193,14 @@ int set_git_dir(const char *path) setup_git_env(); return 0; } + +const char *get_log_output_encoding(void) +{ + return git_log_output_encoding ? git_log_output_encoding + : get_commit_output_encoding(); +} + +const char *get_commit_output_encoding(void) +{ + return git_commit_encoding ? git_commit_encoding : "UTF-8"; +} |