fetch: refactor code that prepares a transport
commitdb5723c6283d9a8dff3397c432af80cf5e2f7766
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Aug 2013 21:43:20 +0000 (7 14:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Aug 2013 23:24:30 +0000 (7 16:24 -0700)
tree568795fe12ab6e5d6c60f1698123349ca10ada61
parentaf23445925464b74b5f038271b6cfeaeb217481f
fetch: refactor code that prepares a transport

Make a helper function prepare_transport() that returns a transport
to talk to a given remote.

The set_option() helper that used to always affect the file-scope
global "gtransport" now takes a transport as its parameter.

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