summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-08-31 17:16:40 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-08-31 21:50:28 +0200
commitba67c0752269ba06523fe7f5fa350e6328b20241 (patch)
treeecf846c692758ef9446cc29b148111ee168bcdc2 /include/git2/remote.h
parentbd3854a09c9bd4196cf280108d3f6286ee6de258 (diff)
downloadlibgit2-ba67c0752269ba06523fe7f5fa350e6328b20241.tar.gz
remote: get rid of git_remote_valid_url()
It does the same as git_remote_supported_url() but has a name which implies we'd check the URL for correctness while we're simply looking at the scheme and looking it up in our lists. While here, fix up the tests so we check all the combination of what's supported.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index c0717fa31..de5823e6d 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -384,15 +384,12 @@ GIT_EXTERN(int) git_remote_fetch(
const char *reflog_message);
/**
- * Return whether a string is a valid remote URL
*
- * @param url the url to check
- * @return 1 if the url is valid, 0 otherwise
- */
-GIT_EXTERN(int) git_remote_valid_url(const char *url);
-
-/**
- * Return whether the passed URL is supported by this version of the library.
+ * Return whether the library supports a particular URL scheme
+ *
+ * Both the built-in and externally-registered transport lists are
+ * searched for a transport which supports the scheme of the given
+ * URL.
*
* @param url the url to check
* @return 1 if the url is supported, 0 otherwise