]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
Cleanup duplicate initialization code in transport_get
authorShawn O. Pearce <spearce@spearce.org>
Sat, 15 Sep 2007 07:23:07 +0000 (03:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Sep 2007 10:22:31 +0000 (03:22 -0700)
commit8eb554ae628d2504922912fb5f046741da4654fc
tree997f783fd5a8f37dcf451ac03b5f1145200cb850
parentb6abb48a152879259ab59f6e470e62b59562d712
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 <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c