diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-11-28 08:40:40 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-11-28 08:40:40 +0100 |
commit | d88d4311c7e08ad0d38edae006b50e2a548c937d (patch) | |
tree | 1b26cee0c3d383043902c599893299fd8fdc5302 /include/git2/remote.h | |
parent | c94785a9f373b6604402ba6a301b828b80ab8cd8 (diff) | |
download | libgit2-repo-ownership.tar.gz |
remote: Cleanup the remotes coderepo-ownership
- Hide the remaining transports code
- Drop `git_headarray`, switch to using a callback to list refs. Makes
the code cleaner.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 2bc2d16ec..0ae38165c 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -10,6 +10,8 @@ #include "common.h" #include "repository.h" #include "refspec.h" +#include "net.h" + /** * @file git2/remote.h * @brief Git remote management functions @@ -107,7 +109,7 @@ GIT_EXTERN(int) git_remote_connect(git_remote *remote, int direction); * @param remote the remote * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headarray *refs); +GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload); /** * Download the packfile @@ -161,6 +163,14 @@ GIT_EXTERN(void) git_remote_free(git_remote *remote); */ GIT_EXTERN(int) git_remote_update_tips(git_remote *remote); +/** + * Return whether a string is a valid remote URL + * + * @param tranport the url to check + * @param 1 if the url is valid, 0 otherwise + */ +GIT_EXTERN(int) git_remote_valid_url(const char *url); + /** @} */ GIT_END_DECL #endif |