diff options
author | Ori Bernstein <ori@eigenstate.org> | 2022-06-11 16:36:45 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-06-11 16:36:45 +0000 |
commit | bb33663b402060b6664d3a1829daad0e44fa9af0 (patch) | |
tree | 9da13c47b56f6f40c6fa35b21c915a96442ff289 /sys/src/cmd/git/git.h | |
parent | 4eeefed7b0c1c47329213f1da719820ebbbebf18 (diff) |
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.
Diffstat (limited to 'sys/src/cmd/git/git.h')
-rw-r--r-- | sys/src/cmd/git/git.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 *); |