summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2020-08-17 21:01:31 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-18 13:25:05 -0700
commitcbe566a0710b39691ca8f6cb6a764f6c553cd97b (patch)
tree19e21e913737a6ad6d6c0137411b05d7bf5c8bd8 /Makefile
parentfetch: optionally allow disabling FETCH_HEAD update (diff)
downloadtgif-cbe566a0710b39691ca8f6cb6a764f6c553cd97b.tar.xz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 65f8cfb236..acdd2e356d 100644
--- a/Makefile
+++ b/Makefile
@@ -916,6 +916,7 @@ LIB_OBJS += mergesort.o
LIB_OBJS += midx.o
LIB_OBJS += name-hash.o
LIB_OBJS += negotiator/default.o
+LIB_OBJS += negotiator/noop.o
LIB_OBJS += negotiator/skipping.o
LIB_OBJS += notes-cache.o
LIB_OBJS += notes-merge.o