diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-24 16:52:39 -0700 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-24 16:52:39 -0700 |
| commit | d09458f3e9f24afa0689ce90b7d4191872372634 (patch) | |
| tree | c45daf219a5c5c1f982ba076c90437795e42f153 /include | |
| parent | 725cd5f29d0c3f7e4019dfc6aacf0fd1843210a9 (diff) | |
| parent | 55cb4999720f46eddb97e25e7ddc6ac068dd0bae (diff) | |
| download | libgit2-d09458f3e9f24afa0689ce90b7d4191872372634.tar.gz | |
Merge pull request #2638 from libgit2/cmn/config-refresh-remove
config: remove the refresh function and backend field
Diffstat (limited to 'include')
| -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 *); |
