git-repo/subcmds
Mike Frysinger b8e09ea1d6 harmonize --current-branch short option across subcommands
We're inconsistent with the short option for this flag:
* gitc-init: <none as -c is already used>
* info:      -b
* init:      -c
* overview:  -b
* sync:      -c
* upload:   --cbr

Since info & overview are not as heavily used as the others, switch
them from -b to -c.  We leave -b in as a hidden alias for now.

Similarly, switch upload from --cbr to just -c.  A lot of people
use --cbr, so we leave this as a hidden alias for now too.

Ideally gitc-init wouldn't use -c, but that ship has sailed, and
we're more likely to deprecate gitc entirely at this point.

This provides a consistent set of options across subcommands.

Bug: https://crbug.com/gerrit/12401
Change-Id: Iec249729223866fe1ea0ebabed12ca851cc38b35
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304902
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2021-05-03 16:57:23 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
branches.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
checkout.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
cherry_pick.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
diff.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
diffmanifests.py diffmanifests/sync: simplify repodir lookup 2021-02-11 02:38:53 +00:00
download.py download: handle shared projects a bit better 2021-03-01 15:57:17 +00:00
forall.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
gitc_delete.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
gitc_init.py init: merge subcmd & wrapper parsers 2021-04-09 01:04:32 +00:00
grep.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
help.py help/version: sprinkle bug report URL around 2021-04-26 21:43:43 +00:00
info.py harmonize --current-branch short option across subcommands 2021-05-03 16:57:23 +00:00
init.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
list.py list: fix help grammar 2021-04-14 15:25:53 +00:00
manifest.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
overview.py harmonize --current-branch short option across subcommands 2021-05-03 16:57:23 +00:00
prune.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
rebase.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
selfupdate.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
smartsync.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
stage.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
start.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
status.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
sync.py superproject: Don't update the commit ids of projects if remote is different. 2021-05-03 05:13:23 +00:00
upload.py harmonize --current-branch short option across subcommands 2021-05-03 16:57:23 +00:00
version.py help/version: sprinkle bug report URL around 2021-04-26 21:43:43 +00:00