mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 10:46:01 +00:00
config: rename get_config_entry -> config_entry
We're already in the git_config namespace, there is no need to repeat it.
This commit is contained in:
parent
3741a37f5e
commit
3ee078c0f7
@ -274,7 +274,7 @@ GIT_EXTERN(void) git_config_free(git_config *cfg);
|
|||||||
* @param name the variable's name
|
* @param name the variable's name
|
||||||
* @return 0 or an error code
|
* @return 0 or an error code
|
||||||
*/
|
*/
|
||||||
GIT_EXTERN(int) git_config_get_config_entry(const git_config_entry **out, git_config *cfg, const char *name);
|
GIT_EXTERN(int) git_config_get_entry(const git_config_entry **out, git_config *cfg, const char *name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of an integer config variable.
|
* Get the value of an integer config variable.
|
||||||
|
@ -435,7 +435,7 @@ int git_config_get_string(const char **out, git_config *cfg, const char *name)
|
|||||||
return GIT_ENOTFOUND;
|
return GIT_ENOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
int git_config_get_config_entry(const git_config_entry **out, git_config *cfg, const char *name)
|
int git_config_get_entry(const git_config_entry **out, git_config *cfg, const char *name)
|
||||||
{
|
{
|
||||||
file_internal *internal;
|
file_internal *internal;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
@ -305,7 +305,7 @@ void test_config_read__read_git_config_entry(void)
|
|||||||
cl_git_pass(git_config_add_file_ondisk(cfg, cl_fixture("config/config9"),
|
cl_git_pass(git_config_add_file_ondisk(cfg, cl_fixture("config/config9"),
|
||||||
GIT_CONFIG_LEVEL_SYSTEM, 0));
|
GIT_CONFIG_LEVEL_SYSTEM, 0));
|
||||||
|
|
||||||
cl_git_pass(git_config_get_config_entry(&entry, cfg, "core.dummy2"));
|
cl_git_pass(git_config_get_entry(&entry, cfg, "core.dummy2"));
|
||||||
cl_assert_equal_s("core.dummy2", entry->name);
|
cl_assert_equal_s("core.dummy2", entry->name);
|
||||||
cl_assert_equal_s("42", entry->value);
|
cl_assert_equal_s("42", entry->value);
|
||||||
cl_assert_equal_i(GIT_CONFIG_LEVEL_SYSTEM, entry->level);
|
cl_assert_equal_i(GIT_CONFIG_LEVEL_SYSTEM, entry->level);
|
||||||
|
Loading…
Reference in New Issue
Block a user