diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-24 17:20:40 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-11-24 17:20:40 -0500 |
commit | 1abed39ff3c8d6d9a92e98ea4e2c14a900df983b (patch) | |
tree | 16670a06057777676c7d09f803ddf19e3786bab0 /b4/command.py | |
parent | 09ed1462ff9ceb7615c812f6cb1a2f34ab768e59 (diff) | |
download | b4-1abed39ff3c8d6d9a92e98ea4e2c14a900df983b.tar.gz |
Add --cc-trailers option to b4 am
By request, add ability to copy all addresses from the email's "Cc"
header into Cc: trailers, unless they are already mentioned in some
other trailer.
Requested-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r-- | b4/command.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/command.py b/b4/command.py index ee865b9..1105a05 100644 --- a/b4/command.py +++ b/b4/command.py @@ -112,6 +112,8 @@ def cmd(): sp_am.add_argument('-3', '--prep-3way', dest='threeway', action='store_true', default=False, help='Prepare for a 3-way merge ' '(tries to ensure that all index blobs exist by making a fake commit range)') + sp_am.add_argument('--cc-trailers', dest='copyccs', action='store_true', default=False, + help='Copy all Cc\'d addresses into Cc: trailers') sp_am.add_argument('--no-cover', dest='nocover', action='store_true', default=False, help='Do not save the cover letter (on by default when using -o -)') sp_am.set_defaults(func=cmd_am) |