Commit 8e6f58c7 authored by Sidney San Martín's avatar Sidney San Martín Committed by Commit Bot

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

Change-Id: Iee6d7cf87281d4ca0abf71a7109f678d5cbbc9f1
Reviewed-on: https://chromium-review.googlesource.com/1091801Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
parent efe4f897
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment