Skip to content

Commit 62cd033

Browse files
gitzillaJunio C Hamano
authored andcommitted
[PATCH] Documentation for git-daemon.
Copy & paste source comments into documentation. Signed-off-by: <gitzilla@gmail.com> (cherry picked from 5d0a4efeff62cfa363437f91308453b5b9fd8cf5 commit)
1 parent f85a419 commit 62cd033

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

Documentation/git-daemon.txt

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,34 @@ git-daemon(1)
33

44
NAME
55
----
6-
git-daemon - Some git command not yet documented.
7-
6+
git-daemon - A really simple server for GIT repositories.
87

98
SYNOPSIS
109
--------
11-
'git-daemon' [ --option ] <args>...
10+
'git-daemon' [--inetd | --port=n]
1211

1312
DESCRIPTION
1413
-----------
15-
Does something not yet documented.
14+
A really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT"
15+
aka 9418. It waits for a connection, and will just execute "git-upload-pack"
16+
when it gets one.
17+
18+
It's careful in that there's a magic request-line that gives the command and
19+
what directory to upload, and it verifies that the directory is ok.
1620

21+
It verifies that the directory has the magic file "git-daemon-export-ok", and
22+
it will refuse to export any git directory that hasn't explicitly been marked
23+
for export this way.
24+
25+
This is ideally suited for read-only updates, ie pulling from git repositories.
1726

1827
OPTIONS
1928
-------
20-
--option::
21-
Some option not yet documented.
22-
23-
<args>...::
24-
Some argument not yet documented.
29+
--inetd::
30+
Have the server run as an inetd service.
2531

32+
--port::
33+
Listen on an alternative port.
2634

2735
Author
2836
------

0 commit comments

Comments
 (0)