diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2007-09-15 03:23:07 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-09-19 03:22:31 -0700 |
| commit | 8eb554ae628d2504922912fb5f046741da4654fc (patch) | |
| tree | 997f783fd5a8f37dcf451ac03b5f1145200cb850 /commit.c | |
| parent | Don't bother passing ref log details to walker in builtin-fetch (diff) | |
| download | git-8eb554ae628d2504922912fb5f046741da4654fc.tar.gz git-8eb554ae628d2504922912fb5f046741da4654fc.zip | |
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
