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:
Gavin Mak
2025-04-23 10:32:11 -07:00
committed by LUCI CQ
parent cc03c34e35
commit 474ecb8462

View File

@@ -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)