Skip to content
Snippets Groups Projects
Commit 4dc7d0cc authored by Jani Nikula's avatar Jani Nikula
Browse files

dim: add support for applying patches using b4

Add 'b4-shazam-branch' and 'b4-shazam' subcommands to apply a patch
series using b4 [1], fetching the patches from Lore. You can either
specify the series using message-id on the command-line, or by piping a
message in the series to the subcommand. Additional b4 command-line
options may be specified as needed, for example to apply individual
patches.

b4 is a much more robust alternative to pretty much everything we do in
dim_apply_branch() and apply_patch() functions, and automatically
gathers reviews and acks from the list.

Use the b4.trailers-ignore-from config to ignore trailers from CI and
kernel build bot. b4 v0.13 or later is required to filter all trailers
in messages from the mentioned addresses (for example Fixes:
trailers). Otherwise b4 shazam picks up a lot of garbage trailers from
CI mails.

[1] https://b4.docs.kernel.org/en/latest/index.html



v3:
- Unconditionally require b3 v0.13 or later
- Use --config option instead of env vars
- Add DIM_B4 config option

v2:
- Use GIT_CONFIG_* to set b4.linkmask (Lucas)
- Use GIT_CONFIG_* to set b4.trailers-ignore-from
- Check for b4 command
- Check b4 version for cover trailers
- Use subcommand names b4-shazam and b4-shazam-branch

Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent d3b9a1c8
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment