Skip to content

Commit 5db9210

Browse files
avargitster
authored andcommitted
docs: move protocol-related docs to man section 5
Continue the move of existing Documentation/technical/* protocol and file-format documentation into our main documentation space. By moving the things that discuss the protocol we can properly link from e.g. lsrefs.unborn and protocol.version documentation to a manpage we build by default. So far we have been using the "gitformat-" prefix for the documentation we've been moving over from Documentation/technical/*, but for protocol documentation let's use "gitprotocol-*". Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8cbace9 commit 5db9210

17 files changed

+106
-37
lines changed

Documentation/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ MAN5_TXT += githooks.txt
3030
MAN5_TXT += gitignore.txt
3131
MAN5_TXT += gitmailmap.txt
3232
MAN5_TXT += gitmodules.txt
33+
MAN5_TXT += gitprotocol-capabilities.txt
34+
MAN5_TXT += gitprotocol-common.txt
35+
MAN5_TXT += gitprotocol-pack.txt
36+
MAN5_TXT += gitprotocol-v2.txt
3337
MAN5_TXT += gitrepository-layout.txt
3438
MAN5_TXT += gitweb.conf.txt
3539

@@ -105,12 +109,8 @@ TECH_DOCS += technical/long-running-process-protocol
105109
TECH_DOCS += technical/multi-pack-index
106110
TECH_DOCS += technical/pack-format
107111
TECH_DOCS += technical/pack-heuristics
108-
TECH_DOCS += technical/pack-protocol
109112
TECH_DOCS += technical/parallel-checkout
110113
TECH_DOCS += technical/partial-clone
111-
TECH_DOCS += technical/protocol-capabilities
112-
TECH_DOCS += technical/protocol-common
113-
TECH_DOCS += technical/protocol-v2
114114
TECH_DOCS += technical/racy-git
115115
TECH_DOCS += technical/reftable
116116
TECH_DOCS += technical/send-pack-pipeline

Documentation/config/lsrefs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lsrefs.unborn::
22
May be "advertise" (the default), "allow", or "ignore". If "advertise",
33
the server will respond to the client sending "unborn" (as described in
4-
protocol-v2.txt) and will advertise support for this feature during the
4+
linkgit:gitprotocol-v2[5]) and will advertise support for this feature during the
55
protocol v2 capability advertisement. "allow" is the same as
66
"advertise" except that the server will not advertise support for this
77
feature; this is useful for load-balanced servers that cannot be

Documentation/config/protocol.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ protocol.version::
5858
* `1` - the original wire protocol with the addition of a version string
5959
in the initial response from the server.
6060

61-
* `2` - link:technical/protocol-v2.html[wire protocol version 2].
61+
* `2` - Wire protocol version 2, see linkgit:gitprotocol-v2[5].
6262

6363
--

Documentation/git-upload-pack.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ OPTIONS
4040
Used by linkgit:git-http-backend[1] to serve up
4141
`$GIT_URL/info/refs?service=git-upload-pack` requests. See
4242
"Smart Clients" in link:technical/http-protocol.html[the HTTP
43-
transfer protocols] documentation and "HTTP Transport" in
44-
link:technical/protocol-v2.html[the Git Wire Protocol, Version
45-
2] documentation. Also understood by
43+
transfer protocols] documentation and "HTTP Transport" in the
44+
linkgit:gitprotocol-v2[5] documentation. Also understood by
4645
linkgit:git-receive-pack[1].
4746

4847
<directory>::

Documentation/gitformat-bundle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ FORMAT
2727
------
2828

2929
We will use ABNF notation to define the Git bundle format. See
30-
link:technical/protocol-common.html for the details.
30+
linkgit:gitprotocol-common[5] for the details.
3131

3232
A v2 bundle looks like this:
3333

Documentation/technical/protocol-capabilities.txt renamed to Documentation/gitprotocol-capabilities.txt

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
Git Protocol Capabilities
2-
=========================
1+
gitprotocol-capabilities(5)
2+
===========================
3+
4+
NAME
5+
----
6+
gitprotocol-capabilities - Protocol v0 and v1 capabilities
7+
8+
SYNOPSIS
9+
--------
10+
[verse]
11+
<over-the-wire-protocol>
12+
13+
DESCRIPTION
14+
-----------
315

416
NOTE: this document describes capabilities for versions 0 and 1 of the pack
5-
protocol. For version 2, please refer to the link:protocol-v2.html[protocol-v2]
17+
protocol. For version 2, please refer to the linkgit:gitprotocol-v2[5]
618
doc.
719

820
Servers SHOULD support all capabilities defined in this document.
@@ -77,7 +89,7 @@ interleaved with S-R-Q.
7789
multi_ack_detailed
7890
------------------
7991
This is an extension of multi_ack that permits client to better
80-
understand the server's in-memory state. See pack-protocol.txt,
92+
understand the server's in-memory state. See linkgit:gitprotocol-pack[5],
8193
section "Packfile Negotiation" for more information.
8294

8395
no-done
@@ -281,7 +293,7 @@ a packfile upload and reference update. If the pushing client requests
281293
this capability, after unpacking and updating references the server
282294
will respond with whether the packfile unpacked successfully and if
283295
each reference was updated successfully. If any of those were not
284-
successful, it will send back an error message. See pack-protocol.txt
296+
successful, it will send back an error message. See linkgit:gitprotocol-pack[5]
285297
for example messages.
286298

287299
report-status-v2
@@ -292,7 +304,7 @@ adding new "option" directives in order to support reference rewritten by
292304
the "proc-receive" hook. The "proc-receive" hook may handle a command
293305
for a pseudo-reference which may create or update a reference with
294306
different name, new-oid, and old-oid. While the capability
295-
'report-status' cannot report for such case. See pack-protocol.txt
307+
'report-status' cannot report for such case. See linkgit:gitprotocol-pack[5]
296308
for details.
297309

298310
delete-refs
@@ -378,3 +390,7 @@ packet-line, and must not contain non-printable or whitespace characters. The
378390
current implementation uses trace2 session IDs (see
379391
link:api-trace2.html[api-trace2] for details), but this may change and users of
380392
the session ID should not rely on this fact.
393+
394+
GIT
395+
---
396+
Part of the linkgit:git[1] suite

Documentation/technical/protocol-common.txt renamed to Documentation/gitprotocol-common.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
Documentation Common to Pack and Http Protocols
2-
===============================================
1+
gitprotocol-common(5)
2+
=====================
3+
4+
NAME
5+
----
6+
gitprotocol-common - Things common to various protocols
7+
8+
SYNOPSIS
9+
--------
10+
[verse]
11+
<over-the-wire-protocol>
12+
13+
DESCRIPTION
14+
-----------
15+
16+
This document sets defines things common to various over-the-wire
17+
protocols and file formats used in Git.
318

419
ABNF Notation
520
-------------
@@ -97,3 +112,7 @@ Examples (as C-style strings):
97112
"000bfoobar\n" "foobar\n"
98113
"0004" ""
99114
----
115+
116+
GIT
117+
---
118+
Part of the linkgit:git[1] suite

Documentation/technical/pack-protocol.txt renamed to Documentation/gitprotocol-pack.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
Packfile transfer protocols
2-
===========================
1+
gitprotocol-pack(5)
2+
===================
3+
4+
NAME
5+
----
6+
gitprotocol-pack - How packs are transferred over-the-wire
7+
8+
SYNOPSIS
9+
--------
10+
[verse]
11+
<over-the-wire-protocol>
12+
13+
DESCRIPTION
14+
-----------
315

416
Git supports transferring data in packfiles over the ssh://, git://, http:// and
517
file:// transports. There exist two sets of protocols, one for pushing
@@ -18,7 +30,7 @@ pkt-line Format
1830
---------------
1931

2032
The descriptions below build on the pkt-line format described in
21-
protocol-common.txt. When the grammar indicate `PKT-LINE(...)`, unless
33+
linkgit:gitprotocol-common[5]. When the grammar indicate `PKT-LINE(...)`, unless
2234
otherwise noted the usual pkt-line LF rules apply: the sender SHOULD
2335
include a LF, but the receiver MUST NOT complain if it is not present.
2436

@@ -60,7 +72,7 @@ Each Extra Parameter takes the form of `<key>=<value>` or `<key>`.
6072

6173
Servers that receive any such Extra Parameters MUST ignore all
6274
unrecognized keys. Currently, the only Extra Parameter recognized is
63-
"version" with a value of '1' or '2'. See protocol-v2.txt for more
75+
"version" with a value of '1' or '2'. See linkgit:gitprotocol-v2[5] for more
6476
information on protocol version 2.
6577

6678
Git Transport
@@ -707,3 +719,7 @@ An example client/server communication might look like this:
707719
S: 0018ok refs/heads/debug\n
708720
S: 002ang refs/heads/master non-fast-forward\n
709721
----
722+
723+
GIT
724+
---
725+
Part of the linkgit:git[1] suite

Documentation/technical/protocol-v2.txt renamed to Documentation/gitprotocol-v2.txt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
Git Wire Protocol, Version 2
2-
============================
1+
gitprotocol-v2(5)
2+
=================
3+
4+
NAME
5+
----
6+
gitprotocol-v2 - Git Wire Protocol, Version 2
7+
8+
SYNOPSIS
9+
--------
10+
[verse]
11+
<over-the-wire-protocol>
12+
13+
DESCRIPTION
14+
-----------
315

416
This document presents a specification for a version 2 of Git's wire
517
protocol. Protocol v2 will improve upon v1 in the following ways:
@@ -26,8 +38,7 @@ Packet-Line Framing
2638
-------------------
2739

2840
All communication is done using packet-line framing, just as in v1. See
29-
`Documentation/technical/pack-protocol.txt` and
30-
`Documentation/technical/protocol-common.txt` for more information.
41+
linkgit:gitprotocol-pack[5] and linkgit:gitprotocol-common[5] for more information.
3142

3243
In protocol v2 these special packets will have the following semantics:
3344

@@ -42,7 +53,7 @@ Initial Client Request
4253
In general a client can request to speak protocol v2 by sending
4354
`version=2` through the respective side-channel for the transport being
4455
used which inevitably sets `GIT_PROTOCOL`. More information can be
45-
found in `pack-protocol.txt` and `http-protocol.txt`, as well as the
56+
found in linkgit:gitprotocol-pack[5] and `http-protocol.txt`, as well as the
4657
`GIT_PROTOCOL` definition in `git.txt`. In all cases the
4758
response from the server is the capability advertisement.
4859

@@ -566,3 +577,7 @@ and associated requested information, each separated by a single space.
566577
attr = "size"
567578

568579
obj-info = obj-id SP obj-size
580+
581+
GIT
582+
---
583+
Part of the linkgit:git[1] suite

Documentation/technical/api-simple-ipc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ client and an optional response message from the server. Both the
7878
client and server messages are unlimited in length and are terminated
7979
with a flush packet.
8080

81-
The pkt-line routines (Documentation/technical/protocol-common.txt)
81+
The pkt-line routines (linkgit:gitprotocol-common[5])
8282
are used to simplify buffer management during message generation,
8383
transmission, and reception. A flush packet is used to mark the end
8484
of the message. This allows the sender to incrementally generate and

0 commit comments

Comments
 (0)