瀏覽代碼

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>
Gavin Mak 4 月之前
父節點
當前提交
474ecb8462
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      gclient.py

+ 6 - 0
gclient.py

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