diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-03 20:25:56 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-03 20:28:49 +0200 |
commit | 8e210931ca5d57b6ca7bc16b41598faa9339bc09 (patch) | |
tree | da738a93013dcd6c92e9249385b72956b5b1a74b /include/git2/remote.h | |
parent | 0ed572d4f529ff778e4a38b53445912c3e85d2ef (diff) | |
download | libgit2-8e210931ca5d57b6ca7bc16b41598faa9339bc09.tar.gz |
remotes: change git_remote_new's signature
Add a fetch refspec arguemnt and make the arguments (name, url,
refspec), as that order makes more sense.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 5794f8d16..41ca7dbac 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -38,11 +38,12 @@ GIT_BEGIN_DECL * * @param out pointer to the new remote object * @param repo the associtated repository - * @param url the remote repository's URL * @param name the remote's name + * @param url the remote repository's URL + * @param fetch the fetch refspec to use for this remote * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *url, const char *name); +GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *name, const char *url, const char *fetch); /** * Get the information for a particular remote |