upload-pack: Increase MAX_HAS.
authorJunio C Hamano <junkio@cox.net>
Sat, 22 Oct 2005 09:28:27 +0000 (02:28 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 22 Oct 2005 09:28:27 +0000 (02:28 -0700)
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>
upload-pack.c
index 8a41cafaaa3fd3bc571aa21e3427260feaa84a65..accdba669b69258c0538fc91a7e04996ea5da7ee 100644 (file)
@@ -6,8 +6,8 @@
 
 static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";
 
-#define MAX_HAS (16)
-#define MAX_NEEDS (256)
+#define MAX_HAS 256
+#define MAX_NEEDS 256
 static int nr_has = 0, nr_needs = 0;
 static unsigned char has_sha1[MAX_HAS][20];
 static unsigned char needs_sha1[MAX_NEEDS][20];