diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 21:05:02 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-23 21:05:02 +0400 |
commit | 55cb4999720f46eddb97e25e7ddc6ac068dd0bae (patch) | |
tree | 73d3c2ec6d9d8e21b5f630dec8067e2153fbd2da /tests/config/include.c | |
parent | 4bb6ffb6bb8ad9d49eb173350be965183cd09c96 (diff) |
config: remove the refresh function and backend field
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 'tests/config/include.c')
-rw-r--r-- | tests/config/include.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/config/include.c b/tests/config/include.c index 58bc690ff..167814e59 100644 --- a/tests/config/include.c +++ b/tests/config/include.c @@ -51,29 +51,6 @@ void test_config_include__homedir(void) cl_sandbox_set_search_path_defaults(); } -void test_config_include__refresh(void) -{ - git_config *cfg; - const char *str; - - cl_fixture_sandbox("config"); - - cl_git_pass(git_config_open_ondisk(&cfg, "config/config-include")); - - cl_git_pass(git_config_get_string(&str, cfg, "foo.bar.baz")); - cl_assert_equal_s(str, "huzzah"); - - /* Change the included file and see if we refresh */ - cl_git_mkfile("config/config-included", "[foo \"bar\"]\nbaz = hurrah"); - cl_git_pass(git_config_refresh(cfg)); - - cl_git_pass(git_config_get_string(&str, cfg, "foo.bar.baz")); - cl_assert_equal_s(str, "hurrah"); - - git_config_free(cfg); - cl_fixture_cleanup("config"); -} - /* We need to pretend that the variables were defined where the file was included */ void test_config_include__ordering(void) { |