* [PATCH] Document two pack push-pull protocols.
@ 2005-07-14 3:21 Junio C Hamano
2005-07-14 3:34 ` Linus Torvalds
0 siblings, 1 reply; 2+ messages in thread
From: Junio C Hamano @ 2005-07-14 3:21 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
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>
---
There currently are these two pack push-pull protocols used for
different purposes. Maybe you invented another today? I have
not looked beyond your log message.
Documentation/pack-protocol.txt | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
create mode 100644 Documentation/pack-protocol.txt
3a74ad8bd10e958ddbd4d432ad3140abc5464229
diff --git a/Documentation/pack-protocol.txt b/Documentation/pack-protocol.txt
new file mode 100644
--- /dev/null
+++ b/Documentation/pack-protocol.txt
@@ -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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Document two pack push-pull protocols.
2005-07-14 3:21 [PATCH] Document two pack push-pull protocols Junio C Hamano
@ 2005-07-14 3:34 ` Linus Torvalds
0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2005-07-14 3:34 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Wed, 13 Jul 2005, Junio C Hamano wrote:
>
> There currently are these two pack push-pull protocols used for
> different purposes. Maybe you invented another today? I have
> not looked beyond your log message.
No, it's the upload-pack one.
The send-pack protocol is just for writing new stuff, not appropriate for
an anonymous connection with no authentication.
Linus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-14 3:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-14 3:21 [PATCH] Document two pack push-pull protocols Junio C Hamano
2005-07-14 3:34 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).