aboutsummaryrefslogtreecommitdiff
path: root/doc/design/assistant/xmpp.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-10 18:39:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-10 18:39:56 -0400
commit9a418f32746c551833136726c052ea2d9549538a (patch)
treec2d7806cbf23b4220b5cc8f56fb2f4634d772c01 /doc/design/assistant/xmpp.mdwn
parent8102072f091e394e9e4dbae515c9965b34745563 (diff)
assistant: Added sequence numbers to XMPP git push packets. (Not yet used.)
For backwards compatability, "" is treated as "0" sequence number. --debug will show xmpp sequence numbers now, but they are not otherwise used.
Diffstat (limited to 'doc/design/assistant/xmpp.mdwn')
-rw-r--r--doc/design/assistant/xmpp.mdwn9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/design/assistant/xmpp.mdwn b/doc/design/assistant/xmpp.mdwn
index fed79527e..6be92f464 100644
--- a/doc/design/assistant/xmpp.mdwn
+++ b/doc/design/assistant/xmpp.mdwn
@@ -88,17 +88,22 @@ When a peer is ready to send a git push, it sends:
The receiver runs `git receive-pack`, and sends back its output in
one or more chat messages, directed to the client that is pushing:
- <git-annex xmlns='git-annex' rp="">
+ <git-annex xmlns='git-annex' rp="N">
007b27ca394d26a05d9b6beefa1b07da456caa2157d7 refs/heads/git-annex report-status delete-refs side-band-64k quiet ofs-delta
</git-annex>
The sender replies with the data from `git push`, in
one or more chat messages, directed to the receiver:
- <git-annex xmlns='git-annex' sp="">
+ <git-annex xmlns='git-annex' sp="N">
data
</git-annex>
+The value of rp and sp used to be empty, but now it's a sequence number.
+This indicates the sequence of this packet, counting from 1. The receiver
+and sender each have their own sequence numbers. These sequence numbers
+are not really used yet, but are available for debugging.
+
When `git receive-pack` exits, the receiver indicates its exit
status with a chat message, directed at the sender: