-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Document two pack push-pull protocols.
This documents the two pack push-pull protocols used by the smart upload-fetch/clone and send/receive commands. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Junio C Hamano
authored and
Linus Torvalds
committed
Jul 14, 2005
1 parent
5ccdf4c
commit 9b011b2
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
There are two Pack push-pull protocols. | ||
|
||
upload-pack (S) | fetch/clone-pack (C) protocol: | ||
|
||
# Tell the puller what commits we have and what their names are | ||
S: SHA1 name | ||
S: ... | ||
S: SHA1 name | ||
S: # flush -- it's your turn | ||
# Tell the pusher what commits we want, and what we have | ||
C: want name | ||
C: .. | ||
C: want name | ||
C: have SHA1 | ||
C: have SHA1 | ||
C: ... | ||
C: # flush -- occasionally ask "had enough?" | ||
S: NAK | ||
C: have SHA1 | ||
C: ... | ||
C: have SHA1 | ||
S: ACK | ||
C: done | ||
S: XXXXXXX -- packfile contents. | ||
|
||
send-pack | receive-pack protocol. | ||
|
||
# Tell the pusher what commits we have and what their names are | ||
C: SHA1 name | ||
C: ... | ||
C: SHA1 name | ||
C: # flush -- it's your turn | ||
# Tell the puller what the pusher has | ||
S: old-SHA1 new-SHA1 name | ||
S: old-SHA1 new-SHA1 name | ||
S: ... | ||
S: # flush -- done with the list | ||
S: XXXXXXX --- packfile contents. |