Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement a CommitStaged hook? #161

Closed
abereghici opened this issue Jul 22, 2024 · 2 comments
Closed

How to implement a CommitStaged hook? #161

abereghici opened this issue Jul 22, 2024 · 2 comments

Comments

@abereghici
Copy link

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.

@Robitx
Copy link
Owner

Robitx commented Jul 22, 2024

Check #145 conversation for inspiration.

@abereghici
Copy link
Author

thank you @Robitx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants