From: Philip Jägenstedt Date: Sat, 18 Feb 2012 11:17:47 +0000 (+0100) Subject: remote: fix set-branches usage and documentation X-Git-Tag: v1.7.9.3~19^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca5bc9e61fb26969c9b028c9b853af109f9f00c5;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index de4386bf7..7112f9400 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -14,7 +14,7 @@ SYNOPSIS 'git remote rename' 'git remote rm' 'git remote set-head' (-a | -d | ) -'git remote set-branches' [--add] ... +'git remote set-branches' [--add] ... 'git remote set-url' [--push] [] 'git remote set-url --add' [--push] 'git remote set-url --delete' [--push] diff --git a/builtin/remote.c b/builtin/remote.c index 06741ecde..7f3514b70 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] ", "git remote prune [-n | --dry-run] ", "git remote [-v | --verbose] update [-p | --prune] [group | remote]", - "git remote set-branches [--add] ...", + "git remote set-branches [--add] ...", "git remote set-url []", "git remote set-url --add ", "git remote set-url --delete ",