Skip to content

Commit 401102d

Browse files
committed
Contributing: add new "Submitting patches" section
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a561499 commit 401102d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Contributing.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,16 @@ For new abstractions and modules, and especially for those that require new kern
6767
This way, you can get early design feedback before the actual patch submission later, and the discussion is focused on the given subsystem (rather than the prerequisites).
6868

6969
- In general, the kernel does not allow to integrate code without users, but exceptions can potentially be made for Rust code to simplify the upstreaming process early on. Please contact the Rust maintainers for help, especially if you find yourself with a lot of dependencies or patches for unrelated subsystems.
70+
71+
## Submitting patches
72+
73+
If you are using a CLI tool like [`git-send-email`](https://git-scm.com/docs/git-send-email) or [`b4`](https://b4.docs.kernel.org), then you may find the following commands useful for generating the options needed for submitting patches to the Rust subsystem:
74+
75+
```sh
76+
awk '/^RUST$/,/^$/' MAINTAINERS | grep '^M:' | cut -f2- | xargs -IP echo --to \'P\' \\
77+
awk '/^RUST$/,/^$/' MAINTAINERS | grep '^[RL]:' | cut -f2- | xargs -IP echo --cc \'P\' \\
78+
```
79+
80+
This list includes the maintainers (`M:`), reviewers (`R:`) and mailing list (`L:`) of the "RUST" subsystem in the `MAINTAINERS` file.
81+
82+
However, please keep in mind that this does not cover additional subsystems that you may need to submit your patches to, as explained in the other sections.

0 commit comments

Comments
 (0)