summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-03-05 19:32:21 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-03-05 19:32:21 +0100
commit4f8efc97c1ee06bc113443f028ba7821a7af7920 (patch)
treeff363d659e20dd3950bb3845da6e122d54815a5d /include/git2
parent7a5449662972769b6b09540463d8b6378664393a (diff)
downloadlibgit2-4f8efc97c1ee06bc113443f028ba7821a7af7920.tar.gz
Make git_remote_supported_url() public and shorten error string
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h8
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.