Created disable-auto-submit flag for git cl split
This CL adds a disable-auto-submit flag for git cl split.
Change-Id: Ibce0e06706390ff9429d59094fed2449096c631c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4659527
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Anne Redulla <aredulla@google.com>
diff --git a/git_cl.py b/git_cl.py
index d2575f5..41bdd7e 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -5123,11 +5123,20 @@
'infrastructure. Try to upload these not during high '
'load times (usually 11-3 Mountain View time). Email '
'infra-dev@chromium.org with any questions.')
- parser.add_option('-a', '--enable-auto-submit', action='store_true',
+ parser.add_option('-a',
+ '--enable-auto-submit',
+ action='store_true',
+ dest='enable_auto_submit',
default=True,
help='Sends your change to the CQ after an approval. Only '
- 'works on repos that have the Auto-Submit label '
- 'enabled')
+ 'works on repos that have the Auto-Submit label '
+ 'enabled')
+ parser.add_option('--disable-auto-submit',
+ action='store_false',
+ dest='enable_auto_submit',
+ help='Disables automatic sending of the changes to the CQ '
+ 'after approval. Note that auto-submit only works for '
+ 'repos that have the Auto-Submit label enabled.')
parser.add_option('--max-depth',
type='int',
default=0,