]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/remote.c
remote: handle multiple refspecs
authorCarlos Martín Nieto <cmn@dwim.me>
Sat, 20 Apr 2013 02:43:28 +0000 (04:43 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Sat, 20 Apr 2013 15:54:13 +0000 (17:54 +0200)
commit4330ab26b53c0e1bf8cbb5e65704f65e3d116eba
tree14bf8d854854298bfe43b3a02c8c26f59377c988
parente5a27f039ee3ae1291fd5084707c3f9c168f10ba
remote: handle multiple refspecs

A remote can have a multitude of refspecs. Up to now our git_remote's
have supported a single one for each fetch and push out of simplicity
to get something working.

Let the remotes and internal code know about multiple remotes and get
the tests passing with them.

Instead of setting a refspec, the external users can clear all and add
refspecs. This should be enough for most uses, though we're still
missing a querying function.
14 files changed:
include/git2/remote.h
src/branch.c
src/clone.c
src/fetch.c
src/push.c
src/refspec.c
src/refspec.h
src/remote.c
src/remote.h
tests-clar/clone/nonetwork.c
tests-clar/network/remote/remotes.c
tests-clar/online/fetchhead.c
tests-clar/online/push.c
tests-clar/refs/branches/remote.c