Skip to content

Commit 9609dc9

Browse files
moygitster
authored andcommitted
(short) documentation for the testgit remote helper
While it's not a command meant to be used by actual users (hence, not mentionned in git(1)), this command is a very precious help for remote-helpers authors. The best place for such technical doc is the source code, but users may not find it without a link in a manpage. Signed-off-by: Matthieu Moy <[email protected]> Acked-by: Sverre Rabbelier <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 960e311 commit 9609dc9

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

Documentation/git-remote-helpers.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ SEE ALSO
362362
--------
363363
linkgit:git-remote[1]
364364

365+
linkgit:git-remote-testgit[1]
366+
365367
GIT
366368
---
367369
Part of the linkgit:git[1] suite

Documentation/git-remote-testgit.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
git-remote-testgit(1)
2+
=====================
3+
4+
NAME
5+
----
6+
git-remote-testgit - Example remote-helper
7+
8+
9+
SYNOPSIS
10+
--------
11+
[verse]
12+
git clone testgit::<source-repo> [<destination>]
13+
14+
DESCRIPTION
15+
-----------
16+
17+
This command is a simple remote-helper, that is used both as a
18+
testcase for the remote-helper functionality, and as an example to
19+
show remote-helper authors one possible implementation.
20+
21+
The best way to learn more is to read the comments and source code in
22+
'git-remote-testgit.py'.
23+
24+
SEE ALSO
25+
--------
26+
linkgit:git-remote-helpers[1]
27+
28+
GIT
29+
---
30+
Part of the linkgit:git[1] suite

git-remote-testgit.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
#!/usr/bin/env python
22

3+
# This command is a simple remote-helper, that is used both as a
4+
# testcase for the remote-helper functionality, and as an example to
5+
# show remote-helper authors one possible implementation.
6+
#
7+
# This is a Git <-> Git importer/exporter, that simply uses git
8+
# fast-import and git fast-export to consume and produce fast-import
9+
# streams.
10+
#
11+
# To understand better the way things work, one can activate debug
12+
# traces by setting (to any value) the environment variables
13+
# GIT_TRANSPORT_HELPER_DEBUG and GIT_DEBUG_TESTGIT, to see messages
14+
# from the transport-helper side, or from this example remote-helper.
15+
316
# hashlib is only available in python >= 2.5
417
try:
518
import hashlib

0 commit comments

Comments
 (0)