diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-13 20:25:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-13 20:42:26 -0700 |
commit | 6ec311da34cbbc8a571bf889b6ef00c4efb441b5 (patch) | |
tree | c3233ceedd0e36f84b4265f91ad4fb972cdef44a /clone-pack.c | |
parent | d46ad9c989c0c4afc9507b48206f26f75a2fbd24 (diff) | |
download | git-6ec311da34cbbc8a571bf889b6ef00c4efb441b5.tar.gz |
[PATCH] clone-pack and clone-script: documentation and add a missing parameter.
While adding the documentation for these two commands, I noticed
that the name of the program on the other end (git-upload-pack)
is already almost configurable but git-clone-pack lacked command
line parameter parsing to actually use anything but default, so
I introduced --exec= like other remote commands while I was at it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'clone-pack.c')
-rw-r--r-- | clone-pack.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clone-pack.c b/clone-pack.c index 252fb80efd..064ec6964d 100644 --- a/clone-pack.c +++ b/clone-pack.c @@ -4,7 +4,7 @@ #include <sys/wait.h> static int quiet; -static const char clone_pack_usage[] = "git-clone-pack [host:]directory [heads]*"; +static const char clone_pack_usage[] = "git-clone-pack [-q] [--exec=<git-upload-pack>] [<host>:]<directory> [<heads>]*"; static const char *exec = "git-upload-pack"; struct ref { @@ -196,6 +196,10 @@ int main(int argc, char **argv) quiet = 1; continue; } + if (!strncmp("--exec=", arg, 7)) { + exec = arg + 7; + continue; + } usage(clone_pack_usage); } dest = arg; |