author | Junio C Hamano <junkio@cox.net> | |
Fri, 24 Nov 2006 10:34:27 +0000 (02:34 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 24 Nov 2006 10:34:27 +0000 (02:34 -0800) |
* jc/upload-pack:
upload-pack: stop the other side when they have more roots than we do.
upload-pack: stop the other side when they have more roots than we do.
1 | 2 | |||
---|---|---|---|---|
upload-pack.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc upload-pack.c
index ddaa72f0a98e9b7f424279b74798bc3cfaadbd48,e8f4be373cfd0ce03617c5fa1494bf52d4babc6c..4572fff07ca39a53a69453fdc8037e3aae1605a6
--- 1/upload-pack.c
--- 2/upload-pack.c
+++ b/upload-pack.c
static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";
- #define THEY_HAVE (1U << 0)
- #define OUR_REF (1U << 1)
- #define WANTED (1U << 2)
+ /* bits #0..7 in revision.h, #8..10 in commit.c */
+ #define THEY_HAVE (1u << 11)
+ #define OUR_REF (1u << 12)
+ #define WANTED (1u << 13)
+ #define COMMON_KNOWN (1u << 14)
+ #define REACHABLE (1u << 15)
+
-static unsigned long oldest_have = 0;
++static unsigned long oldest_have;
+
-static int multi_ack = 0, nr_our_refs = 0;
-static int use_thin_pack = 0;
+static int multi_ack, nr_our_refs;
+static int use_thin_pack, use_ofs_delta;
static struct object_array have_obj;
static struct object_array want_obj;
-static unsigned int timeout = 0;
-static int use_sideband = 0;
+static unsigned int timeout;
+/* 0 for no sideband,
+ * otherwise maximum packet size (up to 65520 bytes).
+ */
+static int use_sideband;
static void reset_timeout(void)
{