From: Tay Ray Chuan Date: Sat, 10 Apr 2010 02:50:19 +0000 (+0800) Subject: fetch/push: fix usage strings X-Git-Tag: v1.7.1-rc1~3^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3163c75156f1b85e8a778cecfacae63c14dcdbb;p=git.git fetch/push: fix usage strings - use "" instead of just "options". - use "[ [...]]" to indicate that and are optional, and that cannot be specified without specifying . Note that when called without specifying (eg. "git fetch -f"), it is accurate to say that the "git fetch [] [ ...]" case takes precedence over "git fetch [] ". Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-fetch.txt b/Documentation/git-fetch.txt index 948ea26c5..400fe7f95 100644 --- a/Documentation/git-fetch.txt +++ b/Documentation/git-fetch.txt @@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository SYNOPSIS -------- -'git fetch' ... +'git fetch' [] [ [...]] -'git fetch' +'git fetch' [] -'git fetch' --multiple [ | ]... +'git fetch' --multiple [] [ | ]... -'git fetch' --all +'git fetch' --all [] DESCRIPTION diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt index 49b6bd9d9..7a4e507c4 100644 --- a/Documentation/git-push.txt +++ b/Documentation/git-push.txt @@ -11,7 +11,7 @@ SYNOPSIS [verse] 'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=] [--repo=] [-f | --force] [-v | --verbose] [-u | --set-upstream] - [ ...] + [ [...]] DESCRIPTION ----------- diff --git a/builtin-fetch.c b/builtin-fetch.c index bbc425b65..007dabf62 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -13,10 +13,10 @@ #include "sigchain.h" static const char * const builtin_fetch_usage[] = { - "git fetch [options] [ ...]", - "git fetch [options] ", - "git fetch --multiple [options] [ | ]...", - "git fetch --all [options]", + "git fetch [] [ [...]]", + "git fetch [] ", + "git fetch --multiple [] [ | ]...", + "git fetch --all []", NULL }; diff --git a/builtin-push.c b/builtin-push.c index f7bc2b292..9fc693124 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -10,7 +10,7 @@ #include "parse-options.h" static const char * const push_usage[] = { - "git push [] [ ...]", + "git push [] [ [...]]", NULL, };