summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-02-06 09:36:51 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-02-06 15:01:15 -0500
commit923c16527c30c7ad067ebb308b1572b3d163b54c (patch)
treef248a433b800c2a80440ac7899b2d241e274c64d /include
parentb523776785e542792bd22f185ed0a678ab07c872 (diff)
downloadlibgit2-923c16527c30c7ad067ebb308b1572b3d163b54c.tar.gz
transport: add capabilities query function
Diffstat (limited to 'include')
-rw-r--r--include/git2/sys/transport.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h
index 89e687649..f0c2a3eab 100644
--- a/include/git2/sys/transport.h
+++ b/include/git2/sys/transport.h
@@ -47,6 +47,16 @@ struct git_transport {
const git_remote_connect_options *connect_opts);
/**
+ * Gets the capabilities for this remote repository.
+ *
+ * This function may be called after a successful call to
+ * `connect()`.
+ */
+ int GIT_CALLBACK(capabilities)(
+ unsigned int *capabilities,
+ git_transport *transport);
+
+ /**
* Get the list of available references in the remote repository.
*
* This function may be called after a successful call to