diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-22 15:45:21 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 09:46:36 +0200 |
| commit | 058b753ceb8f6b25b77e57106b3a87997bc6362a (patch) | |
| tree | 2ad699eda443d924a51d18aaa61c22e10f7eba31 /include/git2/remote.h | |
| parent | 6fb373a0e8eeff3c94853ff0ac55ca6b561c44a1 (diff) | |
| download | libgit2-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.h | 6 |
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. */ |
