Add a b4 configuration file
PATCH v2 1/1 Add a b4 configuration file
b4 [1] is a convenient tool to manage patch series with mailing list working flow.
Add a project default config file to match QEMU's mailing list conventions as well as adopting differences on scripting.
Examples of b4:
``` $ b4 prep --check Checking patches using: scripts/checkpatch.pl -q --terse --no-summary --mailback - --- Signed-off-by: Jiaxun Yang <[email protected]> --- Changes in v2: - Add lore masks (philmd) from: https://lore.kernel.org/qemu-devel/[email protected]/ - Link to v1: https://lore.kernel.org/r/[email protected] --- ● cc5a4c890fed: Add a b4 configuration file ● checkpatch.pl: 27: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? --- Success: 0, Warning: 1, Error: 0 ```
```
$ b4 prep -c
Will collect To: addresses using echo
Will collect Cc: addresses using get_maintainer.pl
Collecting To/Cc addresses
+ To: [email protected]
---
You can trim/expand this list with: b4 prep --edit-cover
Invoking git-filter-repo to update the cover letter.
New history written in 0.02 seconds...
Completely finished after 0.06 seconds
```[1]: https://b4.docs.kernel.org/
--- .b4-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
.b4-config new file +14 -0
@@ -0,0 +1,14 @@ +# +# Common b4 settings that can be used to send patches to QEMU upstream. +# https://b4.docs.kernel.org/ +# + +[b4] + send-series-to = [email protected] + send-auto-to-cmd = echo + send-auto-cc-cmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback + am-perpatch-check-cmd = scripts/checkpatch.pl -q --terse --no-summary --mailback - + prep-perpatch-check-cmd = scripts/checkpatch.pl -q --terse --no-summary --mailback - + searchmask = https://lore.kernel.org/qemu-devel/?x=m&t=1&q=%s + linkmask = https://lore.kernel.org/qemu-devel/%s + linktrailermask = Message-ID: <%s>
---
base-commit: 65cb7129f4160c7e07a0da107f888ec73ae96776
change-id: 20241222-b4-config-e469b075802c
Best regards,
Signature · 1 line
Jiaxun Yang <[email protected]>
Quoted 40 lines · Jiaxun Yang
b4 [1] is a convenient tool to manage patch series with mailing list working flow.
Add a project default config file to match QEMU's mailing list conventions as well as adopting differences on scripting.
Examples of b4:
``` $ b4 prep --check Checking patches using: scripts/checkpatch.pl -q --terse --no-summary --mailback - --- Signed-off-by: Jiaxun Yang <[email protected]> --- Changes in v2: - Add lore masks (philmd) from: https://lore.kernel.org/qemu-devel/[email protected]/ - Link to v1: https://lore.kernel.org/r/[email protected] --- ● cc5a4c890fed: Add a b4 configuration file ● checkpatch.pl: 27: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? --- Success: 0, Warning: 1, Error: 0 `````` $ b4 prep -c Will collect To: addresses using echo Will collect Cc: addresses using get_maintainer.pl Collecting To/Cc addresses + To: [email protected] --- You can trim/expand this list with: b4 prep --edit-cover Invoking git-filter-repo to update the cover letter. New history written in 0.02 seconds... Completely finished after 0.06 seconds ```
Quoted 7 lines
[1]: https://b4.docs.kernel.org/
Co-developed-by Signed-off-by: Philippe Mathieu-Daudé <[email protected]>Signed-off-by Jiaxun Yang <[email protected]>--- .b4-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
Squashing in order to avoid checkpatch.pl error:
-- >8 --
MAINTAINERS +6 -0
@@ -4310,3 +4310,9 @@ Machine development tool M: Maksim Davydov <[email protected]> S: Supported F: scripts/compare-machine-types.py + +b4 tool configuration +M: Jiaxun Yang <[email protected]> +M: Philippe Mathieu-Daudé <[email protected]> +S: Odd Fixes +F: .b4-config
---
and queued, thanks!
Quoted 50 lines · Philippe Mathieu-Daudé
Quoted 34 lines · Jiaxun Yang
b4 [1] is a convenient tool to manage patch series with mailing list working flow.
Add a project default config file to match QEMU's mailing list conventions as well as adopting differences on scripting.
Examples of b4:``` $ b4 prep --check Checking patches using: scripts/checkpatch.pl -q --terse --no-summary --mailback - --- Signed-off-by: Jiaxun Yang <[email protected]> --- Changes in v2: - Add lore masks (philmd) from: https://lore.kernel.org/qemu-devel/[email protected]/ - Link to v1: https://lore.kernel.org/r/[email protected] --- ● cc5a4c890fed: Add a b4 configuration file ● checkpatch.pl: 27: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? --- Success: 0, Warning: 1, Error: 0 ``` ``` $ b4 prep -c Will collect To: addresses using echo Will collect Cc: addresses using get_maintainer.pl Collecting To/Cc addresses + To: [email protected] --- You can trim/expand this list with: b4 prep --edit-cover Invoking git-filter-repo to update the cover letter. New history written in 0.02 seconds... Completely finished after 0.06 seconds ```Quoted 6 lines
[1]: https://b4.docs.kernel.org/
Co-developed-by Signed-off-by: Philippe Mathieu-Daudé <[email protected]>Signed-off-by Jiaxun Yang <[email protected]>--- .b4-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+)Squashing in order to avoid checkpatch.pl error:
-- >8 --
MAINTAINERS +0
-0
MAINTAINERS Machine development tool · line 4314
Quoted 5 lines
MAINTAINERS +2
-0@@ -4310,3 +4310,9 @@ Machine development tool M: Maksim Davydov <[email protected]> S: Supported F: scripts/compare-machine-types.py + +b4 tool configuration
Start the title with a capital letter, please.
MAINTAINERS Machine development tool · line 4318
Quoted 4 lines
MAINTAINERS +4
-0+M: Jiaxun Yang <[email protected]> +M: Philippe Mathieu-Daudé <[email protected]> +S: Odd Fixes +F: .b4-config
The scope of this entry is less than clear. What kind of tools?
It's not our own tooling (scripts/...). Perhaps it's tools used by enough developers to warrant committing common configuration to Git. We have such configuration files already, not covered by MAINTAINERS, e.g.:
.dir-locals.el
.editorconfig
.exrc
.gdbinit
.gitpublish
.pylintrc
The path of least resistance is to add .b4-config the same way.
If we decide we want a new entry in MAINTAINERS, its scope should be reasonably clear, and we should add existing files, if any, to it.
Quoted 3 lines
---
and queued, thanks!
Quoted 78 lines · Markus Armbruster
Quoted 50 lines · Philippe Mathieu-Daudé
Quoted 34 lines · Jiaxun Yang
b4 [1] is a convenient tool to manage patch series with mailing list working flow.
Add a project default config file to match QEMU's mailing list conventions as well as adopting differences on scripting.
Examples of b4:``` $ b4 prep --check Checking patches using: scripts/checkpatch.pl -q --terse --no-summary --mailback - --- Signed-off-by: Jiaxun Yang <[email protected]> --- Changes in v2: - Add lore masks (philmd) from: https://lore.kernel.org/qemu-devel/[email protected]/ - Link to v1: https://lore.kernel.org/r/[email protected] --- ● cc5a4c890fed: Add a b4 configuration file ● checkpatch.pl: 27: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? --- Success: 0, Warning: 1, Error: 0 ``` ``` $ b4 prep -c Will collect To: addresses using echo Will collect Cc: addresses using get_maintainer.pl Collecting To/Cc addresses + To: [email protected] --- You can trim/expand this list with: b4 prep --edit-cover Invoking git-filter-repo to update the cover letter. New history written in 0.02 seconds... Completely finished after 0.06 seconds ```Quoted 6 lines
[1]: https://b4.docs.kernel.org/
Co-developed-by Signed-off-by: Philippe Mathieu-Daudé <[email protected]>Signed-off-by Jiaxun Yang <[email protected]>--- .b4-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+)Squashing in order to avoid checkpatch.pl error:
-- >8 --
MAINTAINERS +0
-0MAINTAINERS Machine development tool · line 4314
Quoted 5 lines
MAINTAINERS +2
-0@@ -4310,3 +4310,9 @@ Machine development tool M: Maksim Davydov <[email protected]> S: Supported F: scripts/compare-machine-types.py + +b4 tool configurationStart the title with a capital letter, please.
MAINTAINERS Machine development tool · line 4318
Quoted 4 lines
MAINTAINERS +4
-0+M: Jiaxun Yang <[email protected]> +M: Philippe Mathieu-Daudé <[email protected]> +S: Odd Fixes +F: .b4-configThe scope of this entry is less than clear. What kind of tools?
It's not our own tooling (
scripts/...). Perhaps it's tools used by enough developers to warrant committing common configuration to Git. We have such configuration files already, not covered byMAINTAINERS, e.g.:.dir-locals.el
.editorconfig
.exrc
.gdbinit
.gitpublish
.pylintrc
Quoted 4 lines
The path of least resistance is to add .b4-config the same way.
If we decide we want a new entry in
MAINTAINERS, its scope should be reasonably clear, and we should add existing files, if any, to it.
OK, then I'll just ignore ./checkpatch.pl warning for this patch.
Thanks,
Phil.
Quoted 58 lines · Jiaxun Yang
b4 [1] is a convenient tool to manage patch series with mailing list working flow.
Add a project default config file to match QEMU's mailing list conventions as well as adopting differences on scripting.
Examples of b4:
``` $ b4 prep --check Checking patches using: scripts/checkpatch.pl -q --terse --no-summary --mailback - --- Signed-off-by: Jiaxun Yang <[email protected]> --- Changes in v2: - Add lore masks (philmd) from: https://lore.kernel.org/qemu-devel/[email protected]/ - Link to v1: https://lore.kernel.org/r/[email protected] --- ● cc5a4c890fed: Add a b4 configuration file ● checkpatch.pl: 27: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? --- Success: 0, Warning: 1, Error: 0 `````` $ b4 prep -c Will collect To: addresses using echo Will collect Cc: addresses using get_maintainer.pl Collecting To/Cc addresses + To: [email protected] --- You can trim/expand this list with: b4 prep --edit-cover Invoking git-filter-repo to update the cover letter. New history written in 0.02 seconds... Completely finished after 0.06 seconds ```[1]: https://b4.docs.kernel.org/
Co-developed-by Signed-off-by: Philippe Mathieu-Daudé <[email protected]>Signed-off-by Jiaxun Yang <[email protected]>--- .b4-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+).b4-config new file +4
-0@@ -0,0 +1,14 @@ +# +# Common b4 settings that can be used to send patches to QEMU upstream. +# https://b4.docs.kernel.org/ +#
.b4-config line 14
Quoted 10 lines
.b4-config new file +10
-0+ +[b4] + send-series-to = [email protected] + send-auto-to-cmd = echo + send-auto-cc-cmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback + am-perpatch-check-cmd = scripts/checkpatch.pl -q --terse --no-summary --mailback - + prep-perpatch-check-cmd = scripts/checkpatch.pl -q --terse --no-summary --mailback - + searchmask = https://lore.kernel.org/qemu-devel/?x=m&t=1&q=%s + linkmask = https://lore.kernel.org/qemu-devel/%s + linktrailermask = Message-ID: <%s>
Why is this changing the link trailer ?
I think the default format :
is more convenient. people have a direct URL to click on.
Thanks,
C.
Quoted 6 lines
---
base-commit:65cb7129f4160c7e07a0da107f888ec73ae96776
change-id: 20241222-b4-config-e469b075802cBest regards,