I have in my Cursor rules under git commit message heading:
- PROVE YOU ARE READING THIS BY SAYING "I AM READING THIS" IN THE COMMIT MESSAGE.
- Include ONLY code changes. Do NOT mention asset file changes (like `.unity`, `.asset`, `.prefab`). Do NOT mention metadata changes.
- Example messages to exclude:
- "Removed asset files"
- "Removed metadata"
The resulting git commit message:
(correct summary line)
- Removed deprecated assets and metadata.
- (other correct code changes listed..)
I AM READING THIS
The rule is clearly being read, but I think the AI that generates the git commit message has trouble following instructions.
Is there any way to make it follow the instructions?
Furthermore, it would be nice if Cursor had an option of file globs to completely disregard during the git message generation (e.g. *.asset
, *.meta
).
That would directly solve my issue and I wouldn’t need to try specify in my rules to ignore them (which doesn’t work as you can see).