aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-01-29 18:19:43 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-02-12 14:36:04 +0200
commit4e1a2aff47063c233fa0244d052d72fc4febc9d1 (patch)
treed60f8aca309b3cc8bbbbfa66ef0bec44add04cb5
parentf9d03cc39624853f43a15843f7ce3cea4d2e2451 (diff)
contribute.md: Add commit format section
Inspired by: https://www.klipper3d.org/CONTRIBUTING.html#format-of-commit-messages
-rw-r--r--doc/contribute.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/contribute.md b/doc/contribute.md
index 49792583..d3b33aa7 100644
--- a/doc/contribute.md
+++ b/doc/contribute.md
@@ -45,3 +45,17 @@ for what maintainers will look at in PRs.
- Commits that fix mistakes from previous commits must be squashed
- Conflicts must be resolved by rebasing,
instead of merging
+
+### Commit format
+
+The preferred format for commits is the following:
+
+```
+module: Short description
+
+A more thorough description of all changes in this commit if necessary.
+```
+
+where module can be the name of the file,
+with or without extension,
+or a single word explaining the scope of the changes.