]> git.proxmox.com Git - libgit2.git/commit
remote: move the transport ctor to the callbacks
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 22 Apr 2015 13:45:21 +0000 (15:45 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 13 May 2015 07:46:36 +0000 (09:46 +0200)
commit058b753ceb8f6b25b77e57106b3a87997bc6362a
tree2ad699eda443d924a51d18aaa61c22e10f7eba31
parent6fb373a0e8eeff3c94853ff0ac55ca6b561c44a1
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.
include/git2/remote.h
include/git2/sys/transport.h
include/git2/transport.h
include/git2/types.h
src/remote.c
src/remote.h
tests/clone/transport.c
tests/network/remote/remotes.c
tests/online/clone.c
tests/online/push_util.h