{"thread":{"id":"1234","subject":"[PATCH] Documentation: send/receive.","startedAt":"2005-07-14T07:10:05Z","lastAt":"2005-07-14T07:10:05Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6118","messageId":"7vzmspj22a.fsf@assigned-by-dhcp.cox.net","threadId":"1234","inReplyTo":null,"subject":"[PATCH] Documentation: send/receive.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-07-14T07:10:05Z","receivedAt":"2005-07-14T07:10:05Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This adds documentation for 'smarter push' family of commands.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n Documentation/git-receive-pack.txt |   41 ++++++++++++++++++++++++++++++++\n Documentation/git-send-pack.txt    |   46 ++++++++++++++++++++++++++++++++++++\n send-pack.c                        |    3 ++\n 3 files changed, 89 insertions(+), 1 deletions(-)\n create mode 100644 Documentation/git-receive-pack.txt\n create mode 100644 Documentation/git-send-pack.txt\n\n1cf367fc165560b68a51b6ce4cc91d809cf09c99\ndiff --git a/Documentation/git-receive-pack.txt b/Documentation/git-receive-pack.txt\nnew file mode 100644\n--- /dev/null\n+++ b/Documentation/git-receive-pack.txt\n@@ -0,0 +1,41 @@\n+git-receive-pack(1)\n+===================\n+v0.1, July 2005\n+\n+NAME\n+----\n+git-receive-pack - Receive what is pushed into it\n+\n+\n+SYNOPSIS\n+--------\n+'git-receive-pack' <directory>\n+\n+DESCRIPTION\n+-----------\n+Invoked by 'git-send-pack' and updates the repository with the\n+information fed from the remote end.\n+\n+This command is usually not invoked directly by the end user.\n+The UI for the protocol is on the 'git-send-pack' side, and the\n+program pair is meant to be used to push updates to remote\n+repository.  For pull operations, see 'git-fetch-pack' and\n+'git-clone-pack'.\n+\n+\n+OPTIONS\n+-------\n+<directory>::\n+\tThe repository to sync into.\n+\n+Author\n+------\n+Written by Linus Torvalds <torvalds@osdl.org>\n+\n+Documentation\n+--------------\n+Documentation by Junio C Hamano.\n+\n+GIT\n+---\n+Part of the link:git.html[git] suite\ndiff --git a/Documentation/git-send-pack.txt b/Documentation/git-send-pack.txt\nnew file mode 100644\n--- /dev/null\n+++ b/Documentation/git-send-pack.txt\n@@ -0,0 +1,46 @@\n+git-send-pack(1)\n+================\n+v0.1, July 2005\n+\n+NAME\n+----\n+git-send-pack - Push missing objects packed.\n+\n+\n+SYNOPSIS\n+--------\n+'git-send-pack' [--exec=<git-receive-pack>] [<host>:]<directory> [<head>...]\n+\n+DESCRIPTION\n+-----------\n+Invokes 'git-receive-pack' on a possibly remote repository, and\n+updates it from the current repository, sending named heads.\n+\n+\n+OPTIONS\n+-------\n+--exec=<git-receive-pack>::\n+\tPath to the 'git-receive-pack' program on the remote\n+\tend.  Sometimes useful when pushing to a remote\n+\trepository over ssh, and you do not have the program in\n+\ta directory on the default $PATH.\n+\n+<host>::\n+\tA remote host to house the repository.  When this\n+\tpart is specified, 'git-receive-pack' is invoked via\n+\tssh.\n+\n+<directory>::\n+\tThe repository to update.\n+\n+Author\n+------\n+Written by Linus Torvalds <torvalds@osdl.org>\n+\n+Documentation\n+--------------\n+Documentation by Junio C Hamano.\n+\n+GIT\n+---\n+Part of the link:git.html[git] suite\ndiff --git a/send-pack.c b/send-pack.c\n--- a/send-pack.c\n+++ b/send-pack.c\n@@ -2,7 +2,8 @@\n #include \"refs.h\"\n #include \"pkt-line.h\"\n \n-static const char send_pack_usage[] = \"git-send-pack [--exec=other] destination [heads]*\";\n+static const char send_pack_usage[] =\n+\"git-send-pack [--exec=git-receive-pack] [host:]directory [heads]*\";\n static const char *exec = \"git-receive-pack\";\n \n struct ref {\n"}]}