diff options
author | Jeff King <peff@peff.net> | 2012-02-16 03:04:25 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-17 07:52:41 -0800 |
commit | 42bd39b57fee80a9fd136f89c7728e640d13964a (patch) | |
tree | fbff2bdccc7df06fe7c416c44b7b47a6165515e8 /cache.h | |
parent | 0a5f57592728e7667d9e60e309f6270db9fdb67b (diff) | |
download | git-42bd39b57fee80a9fd136f89c7728e640d13964a.tar.gz |
config: teach git_config_rename_section a file argument
The other config-writing functions (git_config_set and
git_config_set_multivar) each have an -"in_file" version to
write a specific file. Let's add one for rename_section,
with the eventual goal of moving away from the magic
config_exclusive_filename global.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1128,6 +1128,7 @@ extern int git_config_parse_key(const char *, char **, int *); extern int git_config_set_multivar(const char *, const char *, const char *, int); extern int git_config_set_multivar_in_file(const char *, const char *, const char *, const char *, int); extern int git_config_rename_section(const char *, const char *); +extern int git_config_rename_section_in_file(const char *, const char *, const char *); extern const char *git_etc_gitconfig(void); extern int check_repository_format_version(const char *var, const char *value, void *cb); extern int git_env_bool(const char *, int); |