summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-02-16 03:04:25 -0500
committerJunio C Hamano <gitster@pobox.com>2012-02-17 07:52:41 -0800
commit42bd39b57fee80a9fd136f89c7728e640d13964a (patch)
treefbff2bdccc7df06fe7c416c44b7b47a6165515e8 /cache.h
parent0a5f57592728e7667d9e60e309f6270db9fdb67b (diff)
downloadgit-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 10afd71d43..0d0c51a394 100644
--- a/cache.h
+++ b/cache.h
@@ -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);