Skip to content

Commit

Permalink
gerrit-send-mail.py: Add patch version to subject
Browse files Browse the repository at this point in the history
Change-Id: I75403dfbebeeb4d667c7dd6b8276c6a4f2ae4842
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg27296.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
flichtenheld authored and cron2 committed Oct 29, 2023
1 parent c827f9d commit ba5ed49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-tools/gerrit-send-mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ def apply_patch_mods(patch_text, details, args):
+ patch_text[comment_start:]
)
filename = f"gerrit-{args.changeid}-{details['revision']}.patch"
patch_text_final = patch_text_mod.replace("Subject: [PATCH]", f"Subject: [PATCH v{details['revision']}]")
with open(filename, "w") as patch_file:
patch_file.write(patch_text_mod)
patch_file.write(patch_text_final)
print("send with:")
print(f"git send-email --in-reply-to {details['msg_id']} {filename}")

Expand Down

0 comments on commit ba5ed49

Please sign in to comment.