]> git.ipfire.org Git - thirdparty/git.git/commit
fetch-pack: factor out hardcoded handshake window size
authorJunio C Hamano <gitster@pobox.com>
Mon, 21 Mar 2011 04:52:40 +0000 (21:52 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Mar 2011 04:53:11 +0000 (21:53 -0700)
commitc12f5917e4f528b056a8b9ca625397aee97ae1e4
treeca8f2f8177e11e021917398886ad63353043f15e
parent761ecf0bc7b6cddf311f00877c59e6381cdbdeea
fetch-pack: factor out hardcoded handshake window size

The "git fetch" client presents the most recent 32 commits it has to the
server and gives a chance to the server to say "ok, we heard enough", and
continues reporting what it has in chunks of 32 commits, digging its
history down to older commits.

Move the hardcoded size of the handshake window outside the code, so that
we can tweak it more easily.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Shawn Pearce <spearce@spearce.org>
builtin/fetch-pack.c