diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-09-27 22:24:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-07 03:53:15 +0300 |
commit | 01775651481ecd9c7288a85cfb7999f7f38ab37c (patch) | |
tree | 3e2dfaec7103a81426e4d8dd3a7e16ddd6fa0587 /transport-internal.h | |
parent | 99bcb883cb2bd2d27939a831a66d794770427e98 (diff) |
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 'transport-internal.h')
0 files changed, 0 insertions, 0 deletions