diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-03-05 19:32:21 +0100 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-03-05 19:32:21 +0100 |
commit | 4f8efc97c1ee06bc113443f028ba7821a7af7920 (patch) | |
tree | ff363d659e20dd3950bb3845da6e122d54815a5d /include/git2 | |
parent | 7a5449662972769b6b09540463d8b6378664393a (diff) | |
download | libgit2-4f8efc97c1ee06bc113443f028ba7821a7af7920.tar.gz |
Make git_remote_supported_url() public and shorten error string
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index e6537ec52..1830c7218 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -198,6 +198,14 @@ GIT_EXTERN(int) git_remote_update_tips(git_remote *remote); GIT_EXTERN(int) git_remote_valid_url(const char *url); /** + * Return whether the passed URL is supported by this version of the library. + * + * @param url the url to check + * @return 1 if the url is supported, 0 otherwise +*/ +GIT_EXTERN(int) git_remote_supported_url(const char* url); + +/** * Get a list of the configured remotes for a repo * * The string array must be freed by the user. |