git-repo/subcmds
Mike Frysinger 7356114d90 add --no-current-branch option to invert --current-branch
For most commands, this is more about providing a way to undo earlier
command line options (e.g. `repo info -c --no-current-branch`) which
can be helpful for scripting & automation.  But for the sync command,
this is helpful to undo the setting that exists in the manifest itself.

With this in place, tweak the sync current_branch_only logic to only
apply the manifest settings when the user hasn't specified a command
line option.

Bug: https://crbug.com/gerrit/12401
Change-Id: I21e2384624680cc740d1b5d1e49c50589d2fe6a0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304903
Reviewed-by: Raman Tenneti <rtenneti@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2021-05-04 11:31:48 +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 add --no-current-branch option to invert --current-branch 2021-05-04 11:31:48 +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 add --no-current-branch option to invert --current-branch 2021-05-04 11:31:48 +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 add --no-current-branch option to invert --current-branch 2021-05-04 11:31:48 +00:00
upload.py add --no-current-branch option to invert --current-branch 2021-05-04 11:31:48 +00:00
version.py help/version: sprinkle bug report URL around 2021-04-26 21:43:43 +00:00