summaryrefslogtreecommitdiffstats
path: root/subcmds/rebase.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-04-13 14:57:40 -0400
committerMike Frysinger <vapier@google.com>2021-04-13 22:25:17 +0000
commit9180a07b8fb33d5ba0b82facf987b51ca7b15dc4 (patch)
tree4c815bea7136115bf382a1bb75b89b67bd39bd61 /subcmds/rebase.py
parentf32f243ff8aaabe5287235015e1ce189da0123e3 (diff)
downloadgit-repo-9180a07b8fb33d5ba0b82facf987b51ca7b15dc4.tar.gz
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 <rtenneti@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/rebase.py')
-rw-r--r--subcmds/rebase.py6
1 files changed, 2 insertions, 4 deletions
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.
39""" 39"""
40 40
41 def _Options(self, p): 41 def _Options(self, p):
42 p.add_option('-i', '--interactive', 42 g = p.get_option_group('--quiet')
43 g.add_option('-i', '--interactive',
43 dest="interactive", action="store_true", 44 dest="interactive", action="store_true",
44 help="interactive rebase (single project only)") 45 help="interactive rebase (single project only)")
45 46
@@ -52,9 +53,6 @@ branch but need to incorporate new upstream changes "underneath" them.
52 p.add_option('--no-ff', 53 p.add_option('--no-ff',
53 dest='ff', default=True, action='store_false', 54 dest='ff', default=True, action='store_false',
54 help='Pass --no-ff to git rebase') 55 help='Pass --no-ff to git rebase')
55 p.add_option('-q', '--quiet',
56 dest='quiet', action='store_true',
57 help='Pass --quiet to git rebase')
58 p.add_option('--autosquash', 56 p.add_option('--autosquash',
59 dest='autosquash', action='store_true', 57 dest='autosquash', action='store_true',
60 help='Pass --autosquash to git rebase') 58 help='Pass --autosquash to git rebase')