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 <Matthieu.Moy@xxxxxxx> --- While we're improving the docs, this is one more thing that would have saved me some time ... Documentation/git-remote-helpers.txt | 2 ++ Documentation/git-remote-testgit.txt | 30 ++++++++++++++++++++++++++++++ git-remote-testgit.py | 14 ++++++++++++++ 3 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 Documentation/git-remote-testgit.txt diff --git a/Documentation/git-remote-helpers.txt b/Documentation/git-remote-helpers.txt index 526fc6a..674797c 100644 --- a/Documentation/git-remote-helpers.txt +++ b/Documentation/git-remote-helpers.txt @@ -362,6 +362,8 @@ SEE ALSO -------- linkgit:git-remote[1] +linkgit:git-remote-testgit[1] + GIT --- Part of the linkgit:git[1] suite diff --git a/Documentation/git-remote-testgit.txt b/Documentation/git-remote-testgit.txt new file mode 100644 index 0000000..2a67d45 --- /dev/null +++ b/Documentation/git-remote-testgit.txt @@ -0,0 +1,30 @@ +git-remote-testgit(1) +===================== + +NAME +---- +git-remote-testgit - Example remote-helper + + +SYNOPSIS +-------- +[verse] +git clone testgit::<source-repo> [<destination>] + +DESCRIPTION +----------- + +This command is a simple remote-helper, that is used both as a +testcase for the remote-helper functionality, and as an example to +show remote-helper authors one possible implementation. + +The best way to learn more is to read the comments and source code in +'git-remote-testgit.py'. + +SEE ALSO +-------- +linkgit:git-remote-helpers[1] + +GIT +--- +Part of the linkgit:git[1] suite diff --git a/git-remote-testgit.py b/git-remote-testgit.py index e9c832b..91d4409 100644 --- a/git-remote-testgit.py +++ b/git-remote-testgit.py @@ -1,5 +1,19 @@ #!/usr/bin/env python +# This command is a simple remote-helper, that is used both as a +# testcase for the remote-helper functionality, and as an example to +# show remote-helper authors one possible implementation. +# +# This is a Git <-> Git importer/exporter, that simply uses git +# fast-import and git fast-export to consume and produce fast-import +# streams. +# +# To understand better the way things work, one can set the variable +# "static int debug" in transport-helper.c to 1, and/or the "DEBUG" +# variable in git_remote_helpers/util.py to True, and try various +# commands. + + # hashlib is only available in python >= 2.5 try: import hashlib -- 1.7.7.rc0.75.g56f27 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html