From 7b034f42e869dce0ec6ed50b52eaae273643f890 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Wed, 26 Aug 2026 23:31:40 -0400 Subject: [PATCH] Doc: define commit message categories --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index c885a30..244ce3a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -80,3 +80,9 @@ catalog 内部数据保留 `(direction, temperature, amplitude)`,而非 RGB。 - 性能优化不得破坏 time-dependent tracing、局部可逆映射或点源的亚像素 PSF 渲染。 - 新增缓存先明确 ownership、生命周期和线程归属;高开销可变缓存默认 thread-local。 - 未在设计文档中明确的物理或数值取舍,应通过小型 prototype、基准或收敛实验确定,并同步更新设计文档。 + +## Git 提交消息 + +- 提交消息必须以 category 开头,格式为 `Category: 简洁说明`。 +- 常用 category 包括 `Doc:`、`Fix:`、`Feat:`、`Makefile:` 等。 +- 对不属于修复或功能的普通小更新,使用所涉及的模块作为 category,例如 `Catalog:`、`Geodesic:`、`Spacetime:` 或 `Output:`。