summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPhilip Jägenstedt <philip.jagenstedt@gmail.com>2012-02-18 11:17:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-02-20 07:44:38 (GMT)
commitca5bc9e61fb26969c9b028c9b853af109f9f00c5 (patch)
tree33d45f9a5d7c9454d8dbf36f3b6fce047e21870d /builtin
parent656cdf0c9ebe2899ef79020285c9a6243dc84d97 (diff)
downloadgit-ca5bc9e61fb26969c9b028c9b853af109f9f00c5.zip
git-ca5bc9e61fb26969c9b028c9b853af109f9f00c5.tar.gz
git-ca5bc9e61fb26969c9b028c9b853af109f9f00c5.tar.bz2
remote: fix set-branches usage and documentation
The canonical order of command line arguments is always to have dashed commands before other parameters, but the "git remote set-branches" subcommand was described to take "name" before an optional "--add". Signed-off-by: Philip Jägenstedt <philip@foolip.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index 06741ec..7f3514b 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -16,7 +16,7 @@ static const char * const builtin_remote_usage[] = {
"git remote [-v | --verbose] show [-n] <name>",
"git remote prune [-n | --dry-run] <name>",
"git remote [-v | --verbose] update [-p | --prune] [group | remote]",
- "git remote set-branches <name> [--add] <branch>...",
+ "git remote set-branches [--add] <name> <branch>...",
"git remote set-url <name> <newurl> [<oldurl>]",
"git remote set-url --add <name> <newurl>",
"git remote set-url --delete <name> <url>",