Code

remote: fix set-branches usage and documentation
authorPhilip Jägenstedt <philip.jagenstedt@gmail.com>
Sat, 18 Feb 2012 11:17:47 +0000 (12:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Feb 2012 07:44:38 +0000 (23:44 -0800)
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>
Documentation/git-remote.txt
builtin/remote.c

index de4386bf7eca2d236a320d83f514cd5010461a1c..7112f94000d2a9e9ed69eaa5d699633d5c95117e 100644 (file)
@@ -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>
index 06741ecde4ad5feed04ae1b7eaa462735f40a672..7f3514b7087cb92bb54278cbc1fffdb0881d41b8 100644 (file)
@@ -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>",