[PATCH] rename git-rpush and git-rpull to git-ssh-push and git-ssh-pull
In preparation for 1.0 release, this makes the command names consistent with others in git-*-pull family. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
dc93841715
commit
418aaf847a
@ -1,21 +1,21 @@
|
|||||||
git-rpull(1)
|
git-ssh-pull(1)
|
||||||
============
|
===============
|
||||||
v0.1, May 2005
|
v0.1, May 2005
|
||||||
|
|
||||||
NAME
|
NAME
|
||||||
----
|
----
|
||||||
git-rpull - Pulls from a remote repository over ssh connection
|
git-ssh-pull - Pulls from a remote repository over ssh connection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git-rpull' [-c] [-t] [-a] [-d] [-v] [--recover] commit-id url
|
'git-ssh-pull' [-c] [-t] [-a] [-d] [-v] [--recover] commit-id url
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
Pulls from a remote repository over ssh connection, invoking git-rpush on
|
Pulls from a remote repository over ssh connection, invoking git-ssh-push
|
||||||
the other end.
|
on the other end.
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
@ -1,19 +1,19 @@
|
|||||||
git-rpush(1)
|
git-ssh-push(1)
|
||||||
============
|
===============
|
||||||
v0.1, May 2005
|
v0.1, May 2005
|
||||||
|
|
||||||
NAME
|
NAME
|
||||||
----
|
----
|
||||||
git-rpush - Helper "server-side" program used by git-rpull
|
git-ssh-push - Helper "server-side" program used by git-ssh-pull
|
||||||
|
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git-rpush'
|
'git-ssh-push'
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
Helper "server-side" program used by git-rpull.
|
Helper "server-side" program used by git-ssh-pull.
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
@ -148,7 +148,7 @@ link:git-resolve-script.html[git-resolve-script]::
|
|||||||
link:git-tag-script.html[git-tag-script]::
|
link:git-tag-script.html[git-tag-script]::
|
||||||
An example script to create a tag object signed with GPG
|
An example script to create a tag object signed with GPG
|
||||||
|
|
||||||
link:git-rpull.html[git-rpull]::
|
link:git-ssh-pull.html[git-ssh-pull]::
|
||||||
Pulls from a remote repository over ssh connection
|
Pulls from a remote repository over ssh connection
|
||||||
|
|
||||||
Interogators:
|
Interogators:
|
||||||
@ -156,8 +156,8 @@ Interogators:
|
|||||||
link:git-diff-helper.html[git-diff-helper]::
|
link:git-diff-helper.html[git-diff-helper]::
|
||||||
Generates patch format output for git-diff-*
|
Generates patch format output for git-diff-*
|
||||||
|
|
||||||
link:git-rpush.html[git-rpush]::
|
link:git-ssh-push.html[git-ssh-push]::
|
||||||
Helper "server-side" program used by git-rpull
|
Helper "server-side" program used by git-ssh-pull
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
6
Makefile
6
Makefile
@ -30,7 +30,7 @@ PROG= git-update-cache git-diff-files git-init-db git-write-tree \
|
|||||||
git-checkout-cache git-diff-tree git-rev-tree git-ls-files \
|
git-checkout-cache git-diff-tree git-rev-tree git-ls-files \
|
||||||
git-check-files git-ls-tree git-merge-base git-merge-cache \
|
git-check-files git-ls-tree git-merge-base git-merge-cache \
|
||||||
git-unpack-file git-export git-diff-cache git-convert-cache \
|
git-unpack-file git-export git-diff-cache git-convert-cache \
|
||||||
git-http-pull git-rpush git-rpull git-rev-list git-mktag \
|
git-http-pull git-ssh-push git-ssh-pull git-rev-list git-mktag \
|
||||||
git-diff-helper git-tar-tree git-local-pull git-write-blob \
|
git-diff-helper git-tar-tree git-local-pull git-write-blob \
|
||||||
git-get-tar-commit-id git-mkdelta git-apply git-stripspace
|
git-get-tar-commit-id git-mkdelta git-apply git-stripspace
|
||||||
|
|
||||||
@ -105,8 +105,8 @@ git-diff-cache: diff-cache.c
|
|||||||
git-convert-cache: convert-cache.c
|
git-convert-cache: convert-cache.c
|
||||||
git-http-pull: http-pull.c pull.c
|
git-http-pull: http-pull.c pull.c
|
||||||
git-local-pull: local-pull.c pull.c
|
git-local-pull: local-pull.c pull.c
|
||||||
git-rpush: rsh.c
|
git-ssh-push: rsh.c
|
||||||
git-rpull: rsh.c pull.c
|
git-ssh-pull: rsh.c pull.c
|
||||||
git-rev-list: rev-list.c
|
git-rev-list: rev-list.c
|
||||||
git-mktag: mktag.c
|
git-mktag: mktag.c
|
||||||
git-diff-helper: diff-helper.c
|
git-diff-helper: diff-helper.c
|
||||||
|
@ -64,13 +64,13 @@ int main(int argc, char **argv)
|
|||||||
arg++;
|
arg++;
|
||||||
}
|
}
|
||||||
if (argc < arg + 2) {
|
if (argc < arg + 2) {
|
||||||
usage("git-rpull [-c] [-t] [-a] [-v] [-d] [--recover] commit-id url");
|
usage("git-ssh-pull [-c] [-t] [-a] [-v] [-d] [--recover] commit-id url");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
commit_id = argv[arg];
|
commit_id = argv[arg];
|
||||||
url = argv[arg + 1];
|
url = argv[arg + 1];
|
||||||
|
|
||||||
if (setup_connection(&fd_in, &fd_out, "git-rpush", url, arg, argv + 1))
|
if (setup_connection(&fd_in, &fd_out, "git-ssh-push", url, arg, argv + 1))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (get_version())
|
if (get_version())
|
@ -16,7 +16,7 @@ int serve_object(int fd_in, int fd_out) {
|
|||||||
do {
|
do {
|
||||||
size = read(fd_in, sha1 + posn, 20 - posn);
|
size = read(fd_in, sha1 + posn, 20 - posn);
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
perror("git-rpush: read ");
|
perror("git-ssh-push: read ");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!size)
|
if (!size)
|
||||||
@ -30,7 +30,7 @@ int serve_object(int fd_in, int fd_out) {
|
|||||||
buf = map_sha1_file(sha1, &objsize);
|
buf = map_sha1_file(sha1, &objsize);
|
||||||
|
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
fprintf(stderr, "git-rpush: could not find %s\n",
|
fprintf(stderr, "git-ssh-push: could not find %s\n",
|
||||||
sha1_to_hex(sha1));
|
sha1_to_hex(sha1));
|
||||||
remote = -1;
|
remote = -1;
|
||||||
}
|
}
|
||||||
@ -45,9 +45,9 @@ int serve_object(int fd_in, int fd_out) {
|
|||||||
size = write(fd_out, buf + posn, objsize - posn);
|
size = write(fd_out, buf + posn, objsize - posn);
|
||||||
if (size <= 0) {
|
if (size <= 0) {
|
||||||
if (!size) {
|
if (!size) {
|
||||||
fprintf(stderr, "git-rpush: write closed");
|
fprintf(stderr, "git-ssh-push: write closed");
|
||||||
} else {
|
} else {
|
||||||
perror("git-rpush: write ");
|
perror("git-ssh-push: write ");
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ void service(int fd_in, int fd_out) {
|
|||||||
retval = read(fd_in, &type, 1);
|
retval = read(fd_in, &type, 1);
|
||||||
if (retval < 1) {
|
if (retval < 1) {
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
perror("rpush: read ");
|
perror("git-ssh-push: read ");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type == 'v' && serve_version(fd_in, fd_out))
|
if (type == 'v' && serve_version(fd_in, fd_out))
|
||||||
@ -91,12 +91,12 @@ int main(int argc, char **argv)
|
|||||||
arg++;
|
arg++;
|
||||||
}
|
}
|
||||||
if (argc < arg + 2) {
|
if (argc < arg + 2) {
|
||||||
usage("git-rpush [-c] [-t] [-a] commit-id url");
|
usage("git-ssh-push [-c] [-t] [-a] commit-id url");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
commit_id = argv[arg];
|
commit_id = argv[arg];
|
||||||
url = argv[arg + 1];
|
url = argv[arg + 1];
|
||||||
if (setup_connection(&fd_in, &fd_out, "git-rpull", url, arg, argv + 1))
|
if (setup_connection(&fd_in, &fd_out, "git-ssh-pull", url, arg, argv + 1))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
service(fd_in, fd_out);
|
service(fd_in, fd_out);
|
Loading…
Reference in New Issue
Block a user