From: Shawn O. Pearce Date: Sat, 15 Sep 2007 07:23:07 +0000 (-0400) Subject: Cleanup duplicate initialization code in transport_get X-Git-Tag: v1.5.4-rc0~325^2~34 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8eb554ae628d2504922912fb5f046741da4654fc?hp=8eb554ae628d2504922912fb5f046741da4654fc Cleanup duplicate initialization code in transport_get We always allocate and return a struct transport* right now as every URL is considered to be a native Git transport if it is not rsync, http/https/ftp or a bundle. So we can simplify the initialization of a new transport object by performing one xcalloc call and filling in only the attributes required. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano ---