]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch: use struct ref to represent refs to be fetched
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Jan 2013 22:02:15 +0000 (14:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Feb 2013 21:53:59 +0000 (13:53 -0800)
commitf2db854d24f32de7b03dde5a7d7134f5e31100b9
tree3654e0cb8fcfc1b96fc66f5a1f199cd81a2e867d
parentdef249911ad0e36a40a0603fc42b7e9cf0b21546
fetch: use struct ref to represent refs to be fetched

Even though "git fetch" has full infrastructure to parse refspecs to
be fetched and match them against the list of refs to come up with
the final list of refs to be fetched, the list of refs that are
requested to be fetched were internally converted to a plain list of
strings at the transport layer and then passed to the underlying
fetch-pack driver.

Stop this conversion and instead pass around an array of refs.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch-pack.c
cache.h
fetch-pack.c
fetch-pack.h
transport.c