docs: Update HACKING guide with recommended git config

This commit is contained in:
Daan De Meyer
2024-03-14 10:18:27 +01:00
parent 09e99a41f0
commit c735424908

View File

@@ -14,6 +14,14 @@ feature, please feel invited to fix it, and submit your work as a
Please make sure to follow our [Coding Style](CODING_STYLE) when submitting
patches. Also have a look at our [Contribution Guidelines](CONTRIBUTING).
To start, run the following commands in the systemd git repository to set up
git correctly:
```shell
$ git config submodule.recurse true
$ git config fetch.recurseSubmodules on-demand
```
When adding new functionality, tests should be added. For shared functionality
(in `src/basic/` and `src/shared/`) unit tests should be sufficient. The general
policy is to keep tests in matching files underneath `src/test/`,