summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2022-06-11 14:29:15 -0700
committerGitHub <noreply@github.com>2022-06-11 14:29:15 -0700
commita75416761c28326262b8c48ebc81f34702fa33b1 (patch)
treea620aa7f4329a983de91c19e36524ba7bf8c1000 /include
parent1d88605ca9d51f9e8695030853d5914743fbb091 (diff)
downloadlibgit2-a75416761c28326262b8c48ebc81f34702fa33b1.tar.gz
Apply suggestions from code review
Co-authored-by: Edward Thomson <ethomson@github.com>
Diffstat (limited to 'include')
-rw-r--r--include/git2/sys/remote.h2
-rw-r--r--include/git2/sys/transport.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/sys/remote.h b/include/git2/sys/remote.h
index bde1b168c..0eae9234d 100644
--- a/include/git2/sys/remote.h
+++ b/include/git2/sys/remote.h
@@ -30,6 +30,8 @@ typedef enum {
/**
* 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
* the memory pointed to by it.
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h
index 8191f1557..af315e369 100644
--- a/include/git2/sys/transport.h
+++ b/include/git2/sys/transport.h
@@ -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 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_transport *transport);