Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-22 13:28:27 +0400
committerJunio C Hamano <junkio@cox.net>2005-10-22 13:28:27 +0400
commit6b32884a09e4b51e60819351200a5b10d9dc053b (patch)
treeccef5ac580c68a9714f37dcd8ee433e9691b640a /upload-pack.c
parent05625af32e7b246fee0cecae933e5707496e4b24 (diff)
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>
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 8a41cafaaa..accdba669b 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -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];