aboutsummaryrefslogtreecommitdiffstats
path: root/fetch-negotiator.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-02 15:30:41 -0700
committerJunio C Hamano <gitster@pobox.com>2018-08-02 15:30:41 -0700
commitaf8ac73801eebf0f3690c3875751eb9e108ceda8 (patch)
tree249972b860396750d38bca79bb0e15c001bbcf8c /fetch-negotiator.c
parentMerge branch 'ab/checkout-default-remote' (diff)
parentfetch-pack: introduce negotiator API (diff)
downloadgit-af8ac73801eebf0f3690c3875751eb9e108ceda8.tar.gz
git-af8ac73801eebf0f3690c3875751eb9e108ceda8.zip
Merge branch 'jt/fetch-pack-negotiator'
Code restructuring and a small fix to transport protocol v2 during fetching. * jt/fetch-pack-negotiator: fetch-pack: introduce negotiator API fetch-pack: move common check and marking together fetch-pack: make negotiation-related vars local fetch-pack: use ref adv. to prune "have" sent fetch-pack: directly end negotiation if ACK ready fetch-pack: clear marks before re-marking fetch-pack: split up everything_local()
Diffstat (limited to 'fetch-negotiator.c')
-rw-r--r--fetch-negotiator.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fetch-negotiator.c b/fetch-negotiator.c
new file mode 100644
index 0000000000..2675d120fe
--- /dev/null
+++ b/fetch-negotiator.c
@@ -0,0 +1,8 @@
+#include "git-compat-util.h"
+#include "fetch-negotiator.h"
+#include "negotiator/default.h"
+
+void fetch_negotiator_init(struct fetch_negotiator *negotiator)
+{
+ default_negotiator_init(negotiator);
+}