summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2012-10-29 13:41:14 -0400
committerPhilip Kelley <phkelley@hotmail.com>2012-11-01 09:02:33 -0400
commit41fb1ca0ec51ad1d2a14b911aab3215e42965d1b (patch)
tree8e2e8b7bfa136602a424a8e9f23189a5618a0c2e /include/git2/remote.h
parenta0ce87c51c1a3b1b3b674902148ad28d8e5fa32d (diff)
downloadlibgit2-41fb1ca0ec51ad1d2a14b911aab3215e42965d1b.tar.gz
Reorganize transport architecture (squashed 3)
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index ad5c38902..1827e12b0 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -13,6 +13,7 @@
#include "net.h"
#include "indexer.h"
#include "strarray.h"
+#include "transport.h"
/**
* @file git2/remote.h
@@ -283,10 +284,22 @@ GIT_EXTERN(int) git_remote_add(git_remote **out, git_repository *repo, const cha
* @param remote the remote to configure
* @param check whether to check the server's certificate (defaults to yes)
*/
-
GIT_EXTERN(void) git_remote_check_cert(git_remote *remote, int check);
/**
+ * Sets a custom transport for the remote. The caller can use this function
+ * to bypass the automatic discovery of a transport by URL scheme (i.e.
+ * http://, https://, git://) and supply their own transport to be used
+ * instead. After providing the transport to a remote using this function,
+ * the transport object belongs exclusively to that remote, and the remote will
+ * free it when it is freed with git_remote_free.
+ *
+ * @param remote the remote to configure
+ * @param transport the transport object for the remote to use
+ */
+GIT_EXTERN(int) git_remote_set_transport(git_remote *remote, git_transport *transport);
+
+/**
* Argument to the completion callback which tells it which operation
* finished.
*/