summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-04-22 15:45:21 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-13 09:46:36 +0200
commit058b753ceb8f6b25b77e57106b3a87997bc6362a (patch)
tree2ad699eda443d924a51d18aaa61c22e10f7eba31 /include/git2/remote.h
parent6fb373a0e8eeff3c94853ff0ac55ca6b561c44a1 (diff)
downloadlibgit2-058b753ceb8f6b25b77e57106b3a87997bc6362a.tar.gz
remote: move the transport ctor to the callbacks
Instead of having it set in a different place from every other callback, put it the main structure. This removes some state from the remote and makes it behave more like clone, where the constructors are passed via the options.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 41cf8512f..22aad5ad4 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -484,6 +484,12 @@ struct git_remote_callbacks {
git_push_negotiation push_negotiation;
/**
+ * Create the transport to use for this operation. Leave NULL
+ * to auto-detect.
+ */
+ git_transport_cb transport;
+
+ /**
* This will be passed to each of the callbacks in this struct
* as the last parameter.
*/