From bb33663b402060b6664d3a1829daad0e44fa9af0 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 11 Jun 2022 16:36:45 +0000 Subject: git/get: keep sending what we have until we get an ack Git9 was sloppy about telling git what commits we have. We would list the commits at the tip of the branch, but not walk down it, which means we would request too much data if our local branches were ahead of the remote. This patch changes that, sending the tips *and* the first 256 commits after them, so that git can produce a better pack for us, with fewer redundant commits. --- sys/src/cmd/git/git.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/src/cmd/git/git.h') diff --git a/sys/src/cmd/git/git.h b/sys/src/cmd/git/git.h index 88afcc1d7..c3ba7b7a9 100644 --- a/sys/src/cmd/git/git.h +++ b/sys/src/cmd/git/git.h @@ -313,6 +313,7 @@ Delta* deltify(Object*, Dtab*, int*); /* proto handling */ int readpkt(Conn*, char*, int); int writepkt(Conn*, char*, int); +int fmtpkt(Conn*, char*, ...); int flushpkt(Conn*); void initconn(Conn*, int, int); int gitconnect(Conn *, char *, char *); -- cgit v1.2.3