| name | commit |
| description | Commit changes to the repository |
Grouping
Check git diff and git diff --staged before writing a message.
One commit per logical unit of work.
Message format
topic: subject — conventional commits
- Subject ≤50 chars
- Body lines ≤72 chars, blank line between subject and body; keep the body concise and to the point
Formatting
CI rejects unformatted C/C++. Before committing, run clang-format once on the
staged C/C++ files and re-stage them:
git diff --cached --name-only -- '*.cpp' '*.h' '*.hpp' '*.cc' '*.cxx' \
| xargs -r clang-format -i && git add -u