mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
656cdf0c9e
commit
ca5bc9e61f
|
@ -14,7 +14,7 @@ SYNOPSIS
|
|||
'git remote rename' <old> <new>
|
||||
'git remote rm' <name>
|
||||
'git remote set-head' <name> (-a | -d | <branch>)
|
||||
'git remote set-branches' <name> [--add] <branch>...
|
||||
'git remote set-branches' [--add] <name> <branch>...
|
||||
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
|
||||
'git remote set-url --add' [--push] <name> <newurl>
|
||||
'git remote set-url --delete' [--push] <name> <url>
|
||||
|
|
|
@ -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>",
|
||||
|
|
Loading…
Reference in a new issue