git_connect: factor out discovery of the protocol and its parts
commitcabc3c12e40f5556bb4de934ab783d53e908e401
authorJohannes Sixt <j6t@kdbg.org>
Thu, 28 Nov 2013 19:49:01 +0000 (28 20:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2013 22:54:47 +0000 (9 14:54 -0800)
treed46836cc6fccf1a6fbd669344d0519cbc3360c1e
parentd98d109979760bed1909fbf5e56cbb6239980095
git_connect: factor out discovery of the protocol and its parts

git_connect has grown large due to the many different protocols syntaxes
that are supported. Move the part of the function that parses the URL to
connect to into a separate function for readability.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c