diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-09-27 12:24:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-07 09:53:15 +0900 |
commit | 01775651481ecd9c7288a85cfb7999f7f38ab37c (patch) | |
tree | 3e2dfaec7103a81426e4d8dd3a7e16ddd6fa0587 /sha1dc_git.c | |
parent | transport: allow skipping of ref listing (diff) | |
download | tgif-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