upload-pack: Increase MAX_HAS.
Later round would further improve fetch-pack not to send useless "have", but in the meantime, increase it to help upload-pack to find more common commits, as discussed on the list. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 22, 2005 at 02:28 UTC
6b32884a09e4b51e60819351200a5b10d9dc053b
1 file changed
+2
-2
upload-pack.c
+2
-2
@@ -6,8 +6,8 @@
6
7
static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";
8
9
-#define MAX_HAS (16)
10
-#define MAX_NEEDS (256)
9
+#define MAX_HAS 256
10
+#define MAX_NEEDS 256
11
static int nr_has = 0, nr_needs = 0;
12
static unsigned char has_sha1[MAX_HAS][20];
13
static unsigned char needs_sha1[MAX_NEEDS][20];