From 9180a07b8fb33d5ba0b82facf987b51ca7b15dc4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 13 Apr 2021 14:57:40 -0400 Subject: command: make --verbose/--quiet available to all subcommands Add new CommonOptions entry points to move the existing --jobs to, and relocate all --verbose/--quiet options to that. This provides both a consistent interface for users as well as for code. Change-Id: Ifaf83b88872421f4749b073c472b4a67ca6c0437 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303224 Reviewed-by: Raman Tenneti Tested-by: Mike Frysinger --- subcmds/rebase.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'subcmds/rebase.py') diff --git a/subcmds/rebase.py b/subcmds/rebase.py index cf536e9d..e0186d4d 100644 --- a/subcmds/rebase.py +++ b/subcmds/rebase.py @@ -39,7 +39,8 @@ branch but need to incorporate new upstream changes "underneath" them. """ def _Options(self, p): - p.add_option('-i', '--interactive', + g = p.get_option_group('--quiet') + g.add_option('-i', '--interactive', dest="interactive", action="store_true", help="interactive rebase (single project only)") @@ -52,9 +53,6 @@ branch but need to incorporate new upstream changes "underneath" them. p.add_option('--no-ff', dest='ff', default=True, action='store_false', help='Pass --no-ff to git rebase') - p.add_option('-q', '--quiet', - dest='quiet', action='store_true', - help='Pass --quiet to git rebase') p.add_option('--autosquash', dest='autosquash', action='store_true', help='Pass --autosquash to git rebase') -- cgit v1.2.3-54-g00ecf