diff mbox series

[2/2] .b4-config: check patches with ./utils/check-package

Message ID 20241105-support-b4-v1-2-2963298c1a58@collins.com
State New
Headers show
Series .b4-config: check patches with ./utils/check-package | expand

Commit Message

Brandon Maier Nov. 5, 2024, 2:37 p.m. UTC
NOTE: This requires `b4` version 0.14.2 or later as earlier versions had
a bug that broke custom prep-perpatch-check-cmd[1].

If a check-cmd is declared, `b4` will warn developers to run the patch
checker before sending a patch series[2][3]. Developers can then run `b4 prep
--check` to automatically run ./utils/check-package on only files
modified in the patch series.

[1] https://github.com/mricon/b4/commit/0741bc9a5b45578e4d3804588dd3f63fe4848059
[2] https://b4.docs.kernel.org/en/latest/contributor/send.html#passing-pre-flight-checks-v0-14
[3] https://b4.docs.kernel.org/en/latest/config.html#contributor-oriented-settings

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
 .b4-config | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/.b4-config b/.b4-config
index 1943458f2fb17cf9bef32f84758c6e0606d80277..d56866986420a744d87dd77d5acd09791d51ab42 100644
--- a/.b4-config
+++ b/.b4-config
@@ -3,5 +3,6 @@ 
 [b4]
     send-series-to = buildroot@buildroot.org
     send-auto-cc-cmd = "./utils/get-developers -e -"
+    prep-perpatch-check-cmd = "./utils/check-package -q -p -"
 
 # vim: set filetype=gitconfig: