summaryrefslogtreecommitdiff
path: root/src/attr.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-10 10:38:10 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-18 01:25:57 +0200
commit29e948debe603d7dd33a171a0101352e6b133a7a (patch)
tree6ceeea89bc6f6174536b0005b8e2c87735b82a8e /src/attr.c
parent52695898e55f37cf657592dd9d7946c5a7938038 (diff)
downloadlibgit2-29e948debe603d7dd33a171a0101352e6b133a7a.tar.gz
global: Change parameter ordering in API
Consistency is good.
Diffstat (limited to 'src/attr.c')
-rw-r--r--src/attr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/attr.c b/src/attr.c
index 1aa965de3..093f64d5c 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -13,11 +13,11 @@ static int collect_attr_files(
int git_attr_get(
+ const char **value,
git_repository *repo,
uint32_t flags,
const char *pathname,
- const char *name,
- const char **value)
+ const char *name)
{
int error;
git_attr_path path;
@@ -64,12 +64,12 @@ typedef struct {
} attr_get_many_info;
int git_attr_get_many(
+ const char **values,
git_repository *repo,
uint32_t flags,
const char *pathname,
size_t num_attr,
- const char **names,
- const char **values)
+ const char **names)
{
int error;
git_attr_path path;
@@ -576,11 +576,11 @@ int git_attr_cache__init(git_repository *repo)
if (git_repository_config__weakptr(&cfg, repo) < 0)
return -1;
- ret = git_config_get_string(cfg, GIT_ATTR_CONFIG, &cache->cfg_attr_file);
+ ret = git_config_get_string(&cache->cfg_attr_file, cfg, GIT_ATTR_CONFIG);
if (ret < 0 && ret != GIT_ENOTFOUND)
return ret;
- ret = git_config_get_string(cfg, GIT_IGNORE_CONFIG, &cache->cfg_excl_file);
+ ret = git_config_get_string(&cache->cfg_excl_file, cfg, GIT_IGNORE_CONFIG);
if (ret < 0 && ret != GIT_ENOTFOUND)
return ret;