Unverified Commit a7541676 by lhchavez Committed by GitHub

Apply suggestions from code review

Co-authored-by: Edward Thomson <ethomson@github.com>
parent 1d88605c
...@@ -30,6 +30,8 @@ typedef enum { ...@@ -30,6 +30,8 @@ typedef enum {
/** /**
* Disposes libgit2-initialized fields from a git_remote_connect_options. * Disposes libgit2-initialized fields from a git_remote_connect_options.
* This should only be used for git_remote_connect_options returned by
* git_transport_remote_connect_options.
* *
* Note that this does not free the `git_remote_connect_options` itself, just * Note that this does not free the `git_remote_connect_options` itself, just
* the memory pointed to by it. * the memory pointed to by it.
......
...@@ -280,7 +280,7 @@ GIT_EXTERN(int) git_transport_smart_proxy_options(git_proxy_options *out, git_tr ...@@ -280,7 +280,7 @@ GIT_EXTERN(int) git_transport_smart_proxy_options(git_proxy_options *out, git_tr
* @param out options struct to fill * @param out options struct to fill
* @param transport the transport to extract the data from. * @param transport the transport to extract the data from.
*/ */
GIT_EXTERN(int) git_transport_smart_remote_connect_options( GIT_EXTERN(int) git_transport_remote_connect_options(
git_remote_connect_options *out, git_remote_connect_options *out,
git_transport *transport); git_transport *transport);
......
...@@ -425,7 +425,7 @@ int git_transport_smart_credentials(git_credential **out, git_transport *transpo ...@@ -425,7 +425,7 @@ int git_transport_smart_credentials(git_credential **out, git_transport *transpo
return connect_opts->callbacks.credentials(out, t->url, user, methods, connect_opts->callbacks.payload); return connect_opts->callbacks.credentials(out, t->url, user, methods, connect_opts->callbacks.payload);
} }
int git_transport_smart_remote_connect_options( int git_transport_remote_connect_options(
git_remote_connect_options *out, git_remote_connect_options *out,
git_transport *transport) git_transport *transport)
{ {
......
...@@ -134,7 +134,7 @@ static int custom_subtransport__action( ...@@ -134,7 +134,7 @@ static int custom_subtransport__action(
GIT_UNUSED(url); GIT_UNUSED(url);
GIT_UNUSED(action); GIT_UNUSED(action);
ret = git_transport_smart_remote_connect_options(&opts, t->owner); ret = git_transport_remote_connect_options(&opts, t->owner);
/* increase the counter once if this function was called at all and once more if the URL matches. */ /* increase the counter once if this function was called at all and once more if the URL matches. */
(*t->called)++; (*t->called)++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment