opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Feature]: Add Caching to avoid reruns

Open ogabrielluiz opened this issue 2 years ago • 3 comments
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

ogabrielluiz avatar Sep 27 '23 23:09 ogabrielluiz