opencommit
opencommit copied to clipboard
[Feature]: Add Caching to avoid reruns
trafficstars
Description
Cache exact matches to avoid having to generate the text again. This happens often when a pre-commit hook stops the commit. If there's more than one file in the commit, the unchanged files should have the commit message ready since it was generated before.
Suggested Solution
A simple string matching database (Langchain has that implementation) should work. Maybe a Sqlite database that gets cleaned up after 24 hours or something like that.
Alternatives
No response
Additional Context
No response