RESOLVED FIXED 241114
webkit-patch: `git am` strips []-enclosed prefixes (e.g. [CMake][WPE]) in a subject
https://bugs.webkit.org/show_bug.cgi?id=241114
Summary webkit-patch: `git am` strips []-enclosed prefixes (e.g. [CMake][WPE]) in a s...
Fujii Hironori
Reported 2022-05-30 18:33:57 PDT
webkit-patch: `git am` strips prefixes (e.g. [CMake][WPE]) in a subject For example, attachment#459852 [details] had "[CMake][WPE]" in the subject. But, it was stripped 251129@main. We should use `-k` for `git am` and `git format-patch`. See also: Bug 240402 – [webkit-patch] Apply patches commit messages Bug 240256 – [webkit-patch] Include commit messages in patches
Attachments
Patch (2.26 KB, patch)
2022-05-30 18:47 PDT, Fujii Hironori
no flags
Patch (1.43 KB, patch)
2022-06-01 17:03 PDT, Fujii Hironori
no flags
Patch for landing (2.26 KB, patch)
2022-06-03 13:40 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2022-05-30 18:47:44 PDT
Fujii Hironori
Comment 2 2022-05-30 18:50:41 PDT
Oh, no. COMMIT_MESSAGE isn't shown for the patch. Bugzilla prettypatch doesn't like a patch generated by git format-patch -k? https://bugs.webkit.org/attachment.cgi?id=459876&action=prettypatch
Fujii Hironori
Comment 3 2022-05-30 18:53:40 PDT
Ah, it expects "[PATCH]" in the subject. https://github.com/WebKit/WebKit/blob/e647f31fb38449bbe7cf4871edc0ee84ce2c30d2/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb#L71 > MESSAGE_HEADER_FORMATS = [ > /^Subject: \[PATCH ?(\d+\/\d+)?\] (.+)/ > ]
Alexey Proskuryakov
Comment 4 2022-05-30 18:54:33 PDT
Just filed bug 241115 about that.
Fujii Hironori
Comment 5 2022-06-01 16:56:03 PDT
git-am has --keep-non-patch option. This is exactly what I want.
Fujii Hironori
Comment 6 2022-06-01 17:03:20 PDT
Jonathan Bedard
Comment 7 2022-06-03 13:20:00 PDT
Comment on attachment 459944 [details] Patch I think you need this in buildbot code in Tools/CISupport too
Fujii Hironori
Comment 8 2022-06-03 13:40:02 PDT
Created attachment 460020 [details] Patch for landing
Fujii Hironori
Comment 9 2022-06-03 14:19:29 PDT
Comment on attachment 460020 [details] Patch for landing 🤞
EWS
Comment 10 2022-06-03 15:21:32 PDT
Committed r295238 (251293@main): <https://commits.webkit.org/251293@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 460020 [details].
Radar WebKit Bug Importer
Comment 11 2022-06-03 15:22:13 PDT
Note You need to log in before you can comment on or make changes to this bug.