summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2018-06-14 22:54:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-15 15:44:24 (GMT)
commitec06283844a90c3e9440286401e9ad7d86daa5ae (patch)
tree57270c7f90133aa44cd9486248168321ab7527d6 /object.h
parentd093bc7582fc60b51b42d2edf32b3ce68cd283eb (diff)
downloadgit-ec06283844a90c3e9440286401e9ad7d86daa5ae.zip
git-ec06283844a90c3e9440286401e9ad7d86daa5ae.tar.gz
git-ec06283844a90c3e9440286401e9ad7d86daa5ae.tar.bz2
fetch-pack: introduce negotiator API
Introduce the new files fetch-negotiator.{h,c}, which contains an API behind which the details of negotiation are abstracted. Currently, only one algorithm is available: the existing one. This patch is written to be easily reviewed: static functions are moved verbatim from fetch-pack.c to negotiator/default.c, and it can be seen that the lines replaced by negotiator->X() calls are present in the X() functions respectively. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.h')
-rw-r--r--object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/object.h b/object.h
index 5c13955..7db4941 100644
--- a/object.h
+++ b/object.h
@@ -28,7 +28,8 @@ struct object_array {
/*
* object flag allocation:
* revision.h: 0---------10 26
- * fetch-pack.c: 0----5
+ * fetch-pack.c: 01
+ * negotiator/default.c: 2--5
* walker.c: 0-2
* upload-pack.c: 4 11----------------19
* builtin/blame.c: 12-13