summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2009-10-25 21:28:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-10-28 06:38:46 (GMT)
commitb1a01e1c0762d117da7dac009b773f310479be12 (patch)
treeac0e72011b930e7dcd5f176d76ef5a0f0301dad0 /remote.c
parent73cf0822b2a4ffa7ad559d1f0772e39718fc7776 (diff)
downloadgit-b1a01e1c0762d117da7dac009b773f310479be12.zip
git-b1a01e1c0762d117da7dac009b773f310479be12.tar.gz
git-b1a01e1c0762d117da7dac009b773f310479be12.tar.bz2
fetch: Speed up fetch of large numbers of refs
When there are large numbers of refs, calling read_ref for each ref is inefficent (and infact downright slow) - so instead use for_each_ref to build up a string list of all the refs that we currently have, which significantly improves the volume. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
0 files changed, 0 insertions, 0 deletions