]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
patman: Use -c to show patch comments
authorSimon Glass <sjg@chromium.org>
Sat, 10 May 2025 11:05:08 +0000 (13:05 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000 (10:07 +0100)
We chose -C as the flag to enable showing comments because -c was used
in 'patman send' to specify the patch count. Now that the 'send' parser
is separated we don't need to do this and it is OK to use the same flag
in a different subcommand.

We want to have a flag for cover-letter comments, so it makes most sense
to have -C for that and -c for patch comments. Update the latter.

Put this in a function since the new 'series' command will add this flag
too.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/cmdline.py

index 8e10c7bb14fde7118eda82479662b872fed536a8..e34cf1265566548d362ed8a9b4e7a694cef5b92c 100644 (file)
@@ -111,6 +111,11 @@ def add_send_args(par):
         help='Preserve Change-Id tags in patches to send.')
 
 
+def _add_show_comments(parser):
+    parser.add_argument('-c', '--show-comments', action='store_true',
+                        help='Show comments from each patch')
+
+
 def add_send_subparser(subparsers):
     """Add the 'send' subparser
 
@@ -147,8 +152,7 @@ def add_status_subparser(subparsers):
     """
     status = subparsers.add_parser('status',
                                    help='Check status of patches in patchwork')
-    status.add_argument('-C', '--show-comments', action='store_true',
-                        help='Show comments from each patch')
+    _add_show_comments(status)
     status.add_argument(
         '-d', '--dest-branch', type=str,
         help='Name of branch to create with collected responses')