remote: align set-branches builtin usage and documentation
PATCH 1/1 remote: align set-branches builtin usage and documentation
The order of [--add] <name> <branch>... was inconsistent between builtin remote usage messages and git-remote.txt. Align it closer to the order used in set-url.
Signed-off-by Philip Jägenstedt <[email protected]>
--- Documentation/git-remote.txt | 2 +- builtin/remote.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/git-remote.txt +1 -1
@@ -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>
builtin/remote.c +1 -1
@@ -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>",
Signature · 1 line
1.7.9.1.246.g77c8c.dirty
Quoted 2 lines · Philip Jägenstedt
The order of [--add] <name> <branch>... was inconsistent between builtin remote usage messages and git-remote.txt.
To clarify, it's the order of "git remote set-branches" that is inconsistent with the two instances the patch touches:
usage: git remote set-branches <name> <branch>...
or: git remote set-branches --add <name> <branch>...
Signature · 1 line
Philip Jägenstedt