Add an `--ignore-current` flag to `git cl owners` to start from scratch.

Change-Id: Iee6d7cf87281d4ca0abf71a7109f678d5cbbc9f1
Reviewed-on: https://chromium-review.googlesource.com/1091801
Reviewed-by: Aaron Gable <agable@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
changes/01/1091801/2
Sidney San Martín 7 years ago committed by Commit Bot
parent efe4f897c2
commit 8e6f58c7e6

@ -5678,6 +5678,10 @@ def CMDdiff(parser, args):
def CMDowners(parser, args):
"""Finds potential owners for reviewing."""
parser.add_option(
'--ignore-current',
action='store_true',
help='Ignore the CL\'s current reviewers and start from scratch.')
parser.add_option(
'--no-color',
action='store_true',
@ -5714,7 +5718,7 @@ def CMDowners(parser, args):
affected_files,
change.RepositoryRoot(),
author,
cl.GetReviewers(),
[] if options.ignore_current else cl.GetReviewers(),
fopen=file, os_path=os.path,
disable_color=options.no_color,
override_files=change.OriginalOwnersFiles()).run()

Loading…
Cancel
Save