[docs] Clarify commit message formatting

Add a note to AGENTS.md to avoid passing literal \n sequences
in commit bodies when using shell commands.

Testing: not run (documentation-only change)
Assisted-by: OpenAI Codex
This commit is contained in:
Behdad Esfahbod committed 2026-03-12 02:48:26 -03:00
1 parent d433fc3593
commit fca580e928
1 file changed
+2
+2
View File
@@ -93,6 +93,8 @@ For API work:
- Before any commit, run the entire test suite with `meson test -C build`.
- Use descriptive commit messages with consistent bracketed subsystem prefixes such as `[subset]`, `[raster]`, `[util]`, or `[meson]`.
- Wrap commit message bodies to about 70 columns.
- When passing commit bodies through the shell, use real newlines, not literal
`\n` escapes. Prefer `$'...'` quoting or a temporary commit message file.
- Explain root cause, fix, and testing in the commit body when testing was actually performed or is relevant.
- When relevant, link issues or PRs with trailers such as `Fixes:`.
- Always include an `Assisted-by:` trailer on commits you write through the agent.