From a9ae10c32d7eeffa8eba81274706c08e0349d539 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 6 Jun 2025 21:18:51 +0100 Subject: [PATCH] transport: update registration docs The documentation for `git_transport_register` erroneously stated that the trailing `://` was required for the scheme. It is not. --- include/git2/sys/transport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h index ad6765c62..6a190242c 100644 --- a/include/git2/sys/transport.h +++ b/include/git2/sys/transport.h @@ -206,7 +206,7 @@ GIT_EXTERN(int) git_transport_ssh_with_paths(git_transport **out, git_remote *ow * and git_transport_unregister with other calls to the library that * instantiate transports. * - * @param prefix The scheme (ending in "://") to match, i.e. "git://" + * @param prefix The scheme to match, eg "git" or "https" * @param cb The callback used to create an instance of the transport * @param param A fixed parameter to pass to cb at creation time * @return 0 or an error code