]> git.proxmox.com Git - libgit2.git/commit - src/clone.c
Remove the callbacks struct from the remote
authorCarlos Martín Nieto <cmn@dwim.me>
Tue, 21 Apr 2015 20:10:36 +0000 (22:10 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 13 May 2015 07:46:35 +0000 (09:46 +0200)
commit8f0104ecc54db00a075310ab744a19eb60e3d740
tree775b3237a853c556a4d44840fc6c562e7b114415
parent05259114427234831cf4915cbe40a5bb8ea021b0
Remove the callbacks struct from the remote

Having the setting be different from calling its actions was not a great
idea and made for the sake of the wrong convenience.

Instead of that, accept either fetch options, push options or the
callbacks when dealing with the remote. The fetch options are currently
only the callbacks, but more options will be moved from setters and
getters on the remote to the options.

This does mean passing the same struct along the different functions but
the typical use-case will only call git_remote_fetch() or
git_remote_push() and so won't notice much difference.
30 files changed:
include/git2.h
include/git2/clone.h
include/git2/push.h [deleted file]
include/git2/remote.h
include/git2/submodule.h
include/git2/sys/transport.h
src/clone.c
src/fetch.c
src/fetch.h
src/push.c
src/push.h
src/remote.c
src/remote.h
src/submodule.c
src/transports/local.c
src/transports/smart.h
src/transports/smart_protocol.c
tests/checkout/index.c
tests/clone/empty.c
tests/clone/nonetwork.c
tests/fetchhead/nonetwork.c
tests/network/fetchlocal.c
tests/network/remote/defaultbranch.c
tests/network/remote/local.c
tests/network/remote/remotes.c
tests/online/clone.c
tests/online/fetch.c
tests/online/fetchhead.c
tests/online/push.c
tests/submodule/update.c