diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 19:05:02 +0200 |
commit | 55cb4999720f46eddb97e25e7ddc6ac068dd0bae (patch) | |
tree | 73d3c2ec6d9d8e21b5f630dec8067e2153fbd2da /include/git2/config.h | |
parent | 4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff) | |
download | libgit2-55cb4999720f46eddb97e25e7ddc6ac068dd0bae.tar.gz |
config: remove the refresh function and backend fieldcmn/config-refresh-remove
We have been refreshing on read and write for a while now, so
git_config_refresh() is at best a no-op, and might just end up wasting
cycles.
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 21a5825a5..a4e20eda8 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -242,20 +242,6 @@ GIT_EXTERN(int) git_config_open_global(git_config **out, git_config *config); */ GIT_EXTERN(int) git_config_snapshot(git_config **out, git_config *config); - -/** - * Reload changed config files - * - * A config file may be changed on disk out from under the in-memory - * config object. This function causes us to look for files that have - * been modified since we last loaded them and refresh the config with - * the latest information. - * - * @param cfg The configuration to refresh - * @return 0 or an error code - */ -GIT_EXTERN(int) git_config_refresh(git_config *cfg); - /** * Free the configuration and its associated memory and files * |