summaryrefslogtreecommitdiff
path: root/sha1dc_git.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2018-09-27 12:24:05 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-07 09:53:15 +0900
commit01775651481ecd9c7288a85cfb7999f7f38ab37c (patch)
tree3e2dfaec7103a81426e4d8dd3a7e16ddd6fa0587 /sha1dc_git.c
parenttransport: allow skipping of ref listing (diff)
downloadtgif-01775651481ecd9c7288a85cfb7999f7f38ab37c.tar.xz
transport: do not list refs if possible
When all refs to be fetched are exact OIDs, it is possible to perform a fetch without requiring the remote to list refs if protocol v2 is used. Teach Git to do this. This currently has an effect only for lazy fetches done from partial clones. The change necessary to likewise optimize "git fetch <remote> <sha-1>" will be done in a subsequent patch. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1dc_git.c')
0 files changed, 0 insertions, 0 deletions