]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
negotiator/noop: add noop fetch negotiator
authorJonathan Tan <jonathantanmy@google.com>
Tue, 18 Aug 2020 04:01:31 +0000 (21:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Aug 2020 20:25:05 +0000 (13:25 -0700)
commitcbe566a0710b39691ca8f6cb6a764f6c553cd97b
tree19e21e913737a6ad6d6c0137411b05d7bf5c8bd8
parent887952b8c680626f4721cb5fa57704478801aca4
negotiator/noop: add noop fetch negotiator

Add a noop fetch negotiator. This is introduced to allow partial clones
to skip the unneeded negotiation step when fetching missing objects
using a "git fetch" subprocess. (The implementation of spawning a "git
fetch" subprocess will be done in a subsequent patch.) But this can also
be useful for end users, e.g. as a blunt fix for object corruption.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/fetch.txt
Makefile
fetch-negotiator.c
negotiator/noop.c [new file with mode: 0644]
negotiator/noop.h [new file with mode: 0644]
repo-settings.c
repository.h
t/t5554-noop-fetch-negotiator.sh [new file with mode: 0755]