{"thread":{"id":"23405","subject":"[PATCH] fetch/push: fix usage strings","startedAt":"2010-04-10T02:50:19Z","lastAt":"2010-04-10T02:50:19Z","messageCount":1,"participants":["Tay Ray Chuan"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"139100","messageId":"1270867819-5224-1-git-send-email-rctay89@gmail.com","threadId":"23405","inReplyTo":null,"subject":"[PATCH] fetch/push: fix usage strings","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-04-10T02:50:19Z","receivedAt":"2010-04-10T02:50:19Z","isPatch":true,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":" - use \"<options>\" instead of just \"options\".\n - use \"[<repository> [<refspec>...]]\" to indicate that <repository> and\n   <refspec> are optional, and that <refspec> cannot be specified\n   without specifying <repository>.\n\nNote that when called without specifying <repository> (eg. \"git fetch\n-f\"), it is accurate to say that the \"git fetch [<options>]\n[<repository> ...]\" case takes precedence over \"git fetch [<options>]\n<group>\".\n\nSigned-off-by: Tay Ray Chuan <rctay89@gmail.com>\n---\n\n  Related to, but does not depend on, the recent ls-remote patch.\n\n Documentation/git-fetch.txt |    8 ++++----\n Documentation/git-push.txt  |    2 +-\n builtin/fetch.c             |    8 ++++----\n builtin/push.c              |    2 +-\n 4 files changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/Documentation/git-fetch.txt b/Documentation/git-fetch.txt\nindex 948ea26..400fe7f 100644\n--- a/Documentation/git-fetch.txt\n+++ b/Documentation/git-fetch.txt\n@@ -8,13 +8,13 @@ git-fetch - Download objects and refs from another repository\n\n SYNOPSIS\n --------\n-'git fetch' <options> <repository> <refspec>...\n+'git fetch' [<options>] [<repository> [<refspec>...]]\n\n-'git fetch' <options> <group>\n+'git fetch' [<options>] <group>\n\n-'git fetch' --multiple <options> [<repository> | <group>]...\n+'git fetch' --multiple [<options>] [<repository> | <group>]...\n\n-'git fetch' --all <options>\n+'git fetch' --all [<options>]\n\n\n DESCRIPTION\ndiff --git a/Documentation/git-push.txt b/Documentation/git-push.txt\nindex 59dc8b1..4857024 100644\n--- a/Documentation/git-push.txt\n+++ b/Documentation/git-push.txt\n@@ -11,7 +11,7 @@ SYNOPSIS\n [verse]\n 'git push' [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>]\n \t   [--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream]\n-\t   [<repository> <refspec>...]\n+\t   [<repository> [<refspec>...]]\n\n DESCRIPTION\n -----------\ndiff --git a/builtin/fetch.c b/builtin/fetch.c\nindex 957be9f..8470850 100644\n--- a/builtin/fetch.c\n+++ b/builtin/fetch.c\n@@ -14,10 +14,10 @@\n #include \"transport.h\"\n\n static const char * const builtin_fetch_usage[] = {\n-\t\"git fetch [options] [<repository> <refspec>...]\",\n-\t\"git fetch [options] <group>\",\n-\t\"git fetch --multiple [options] [<repository> | <group>]...\",\n-\t\"git fetch --all [options]\",\n+\t\"git fetch [<options>] [<repository> [<refspec>...]]\",\n+\t\"git fetch [<options>] <group>\",\n+\t\"git fetch --multiple [<options>] [<repository> | <group>]...\",\n+\t\"git fetch --all [<options>]\",\n \tNULL\n };\n\ndiff --git a/builtin/push.c b/builtin/push.c\nindex 62957ed..f4358b9 100644\n--- a/builtin/push.c\n+++ b/builtin/push.c\n@@ -10,7 +10,7 @@\n #include \"parse-options.h\"\n\n static const char * const push_usage[] = {\n-\t\"git push [<options>] [<repository> <refspec>...]\",\n+\t\"git push [<options>] [<repository> [<refspec>...]]\",\n \tNULL,\n };\n\n--\n1.6.6.1368.g82eeb\n"}]}