diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-03 16:08:33 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-08 21:36:40 +0200 |
commit | a209a025c642498f1fa1aecf91ce9e9504d0d419 (patch) | |
tree | 92d358bd05de3d24ee5276bfdeb8096b8d31a5d7 /include/git2/remote.h | |
parent | 3df9cc592220b1da73a1d4ac82847c3c6d92a1fa (diff) | |
download | libgit2-a209a025c642498f1fa1aecf91ce9e9504d0d419.tar.gz |
remote: add git_remote_add()
Helper function to create a remote with the default settings
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index e81e25f98..856da3b6b 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -218,6 +218,16 @@ GIT_EXTERN(int) git_remote_supported_url(const char* url); */ GIT_EXTERN(int) git_remote_list(git_strarray *remotes_list, git_repository *repo); +/** + * Add a remote with the default fetch refspec to the repository's configuration + * + * @param out the resulting remote + * @param repo the repository in which to create the remote + * @param name the remote's name + * @param url the remote's url + */ +GIT_EXTERN(int) git_remote_add(git_remote **out, git_repository *repo, const char *name, const char *url); + /** @} */ GIT_END_DECL #endif |