mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add --ignore-dep-type option to gclient sync
This option is already available for gclient revinfo. Adding it to gclient sync means we get to reuse the filtering logic already being used for revinfo. Bug: 411662322 Change-Id: I6bd5e1cffe583247a497358ada1e0b82d0be986d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6481194 Reviewed-by: Scott Lee <ddoman@chromium.org> Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
@@ -3977,6 +3977,12 @@ def CMDsync(parser, args):
|
||||
dest='experiments',
|
||||
default=[],
|
||||
help='Which experiments should be enabled.')
|
||||
parser.add_option('--ignore-dep-type',
|
||||
choices=['git', 'cipd', 'gcs'],
|
||||
action='append',
|
||||
default=[],
|
||||
help='Specify to skip processing of a certain type of '
|
||||
'dep.')
|
||||
(options, args) = parser.parse_args(args)
|
||||
client = GClient.LoadCurrentConfig(options)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user