summaryrefslogtreecommitdiff
path: root/src/transport.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-10 20:49:43 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:10 +0200
commit22f65b9e730cd14275897a07b61e338e25099b19 (patch)
tree54172423e8c18782012a4f9430d2a15384b1ee56 /src/transport.c
parent79e9c3eca29e31dff873a99e33c452c8d5d5b6ac (diff)
downloadlibgit2-22f65b9e730cd14275897a07b61e338e25099b19.tar.gz
Move negotiation to the transport
There are many ways how a transport might negotiate with the server, so instead of making it fit into the smart protocol model, let the transport do its thing. For now, the git protocol limits itself to send only 160 "have" lines so we don't flood the server. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/transport.c')
-rw-r--r--src/transport.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport.c b/src/transport.c
index 1bd0c4e9e..91723df73 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -90,6 +90,11 @@ int git_transport_send_have(struct git_transport *transport, git_oid *oid)
return transport->send_have(transport, oid);
}
+int git_transport_negotiate_fetch(struct git_transport *transport, git_repository *repo, git_headarray *list)
+{
+ return transport->negotiate_fetch(transport, repo, list);
+}
+
int git_transport_send_flush(struct git_transport *transport)
{
return transport->send_flush(transport);