diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-10 10:38:10 +0200 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:25:57 +0200 |
| commit | 29e948debe603d7dd33a171a0101352e6b133a7a (patch) | |
| tree | 6ceeea89bc6f6174536b0005b8e2c87735b82a8e /src/remote.c | |
| parent | 52695898e55f37cf657592dd9d7946c5a7938038 (diff) | |
| download | libgit2-29e948debe603d7dd33a171a0101352e6b133a7a.tar.gz | |
global: Change parameter ordering in API
Consistency is good.
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c index a5cfc822e..dc0ff6a03 100644 --- a/src/remote.c +++ b/src/remote.c @@ -48,7 +48,7 @@ static int parse_remote_refspec(git_config *cfg, git_refspec *refspec, const cha int error; const char *val; - if ((error = git_config_get_string(cfg, var, &val)) < 0) + if ((error = git_config_get_string(&val, cfg, var)) < 0) return error; return refspec_parse(refspec, val); @@ -121,7 +121,7 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name) goto cleanup; } - if ((error = git_config_get_string(config, git_buf_cstr(&buf), &val)) < 0) + if ((error = git_config_get_string(&val, config, git_buf_cstr(&buf))) < 0) goto cleanup; remote->repo = repo; |
