How to implement a CommitStaged hook?
abereghici opened this issue · 2 comments
abereghici commented
I'm trying to create a hook for generating commit messages based on my staged files. Is there a way to provide the git diff
output as a context to the agent?
I've tried to use vim.fn.setreg("", get_git_diff())
but doesn't seem to work.
abereghici commented
thank you @Robitx !