git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] pack-protocol.txt: fix pkt-line lengths

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Apr 4, 2010, 13:12 UTC
Message-ID
<1270386737-1424-2-git-send-email-rctay89@gmail.com>
In-Reply-To
<1270386737-1424-1-git-send-email-rctay89@gmail.com>

Previously, the lengths were 4-bytes short. Fix it such that the lengths reflect the total length of the pkt-line, as per spec.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
---
 Documentation/technical/pack-protocol.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/technical/pack-protocol.txt b/Documentation/technical/pack-protocol.txt
index f9468a1..369f91d 100644
--- a/Documentation/technical/pack-protocol.txt
+++ b/Documentation/technical/pack-protocol.txt
@@ -331,7 +331,7 @@ An incremental update (fetch) response might look like this:
 
    C: 0009done\n
 
-   S: 003aACK 74730d410fcb6603ace96f1dc55ea6196122532d\n
+   S: 0031ACK 74730d410fcb6603ace96f1dc55ea6196122532d\n
    S: [PACKFILE]
 ----
 
@@ -488,7 +488,7 @@ An example client/server communication might look like this:
    C: 0000
    C: [PACKDATA]
 
-   S: 000aunpack ok\n
-   S: 0014ok refs/heads/debug\n
-   S: 0026ng refs/heads/master non-fast-forward\n
+   S: 000eunpack ok\n
+   S: 0018ok refs/heads/debug\n
+   S: 002ang refs/heads/master non-fast-forward\n
 ----
-- 
1.7.0.20.gcb44ed
Previous: Tay Ray Chuan
Message 2 of 2 in “pack-protocol.txt: fix spelling”
  1. 1/2 pack-protocol.txt: fix spellingTay Ray Chuan, Apr 4, 2010
  2. 2/2 pack-protocol.txt: fix pkt-line lengthsTay Ray Chuan, Apr 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.