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 | |
parent | 4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff) | |
download | libgit2-cmn/config-refresh-remove.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')
-rw-r--r-- | include/git2/config.h | 14 | ||||
-rw-r--r-- | include/git2/sys/config.h | 1 |
2 files changed, 0 insertions, 15 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 * diff --git a/include/git2/sys/config.h b/include/git2/sys/config.h index 85e0d6417..9136635ef 100644 --- a/include/git2/sys/config.h +++ b/include/git2/sys/config.h @@ -63,7 +63,6 @@ struct git_config_backend { int (*del)(struct git_config_backend *, const char *key); int (*del_multivar)(struct git_config_backend *, const char *key, const char *regexp); int (*iterator)(git_config_iterator **, struct git_config_backend *); - int (*refresh)(struct git_config_backend *); /** Produce a read-only version of this backend */ int (*snapshot)(struct git_config_backend **, struct git_config_backend *); void (*free)(struct git_config_backend *); |