]> git.proxmox.com Git - libgit2.git/commit
remote: make _ls return the list directly
authorCarlos Martín Nieto <cmn@dwim.me>
Fri, 1 Nov 2013 23:05:32 +0000 (00:05 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 11 Nov 2013 14:35:51 +0000 (15:35 +0100)
commit359dce726d215be65aee719c7316b43e3851c031
tree7a4a0c0af01d2d02683a3aed27eca8315f1f9ca0
parent266af6d81960144334c16e061f1d30f94f8a1b46
remote: make _ls return the list directly

The callback-based method of listing remote references dates back to the
beginning of the network code's lifetime, when we didn't know any
better.

We need to keep the list around for update_tips() after disconnect() so
let's make use of this to simply give the user a pointer to the array so
they can write straightforward code instead of having to go through a
callback.
16 files changed:
examples/network/ls-remote.c
include/git2/remote.h
include/git2/transport.h
src/clone.c
src/fetch.c
src/push.c
src/remote.c
src/transports/local.c
src/transports/smart.c
src/transports/smart.h
src/transports/smart_protocol.c
tests-clar/network/remote/local.c
tests-clar/online/fetch.c
tests-clar/online/push.c
tests-clar/online/push_util.c
tests-clar/online/push_util.h