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

Pre-commit hook staging #38

Open
calvinatian opened this issue Feb 23, 2023 · 1 comment
Open

Pre-commit hook staging #38

calvinatian opened this issue Feb 23, 2023 · 1 comment

Comments

@calvinatian
Copy link
Collaborator

The pre-commit hook currently stages all changes in the working directory before committing. Sometimes I have changes in the working directory that are still in progress so I do not want to stage them yet. Or multiple changes that I want to commit separately. I think it would be better if the hook only staged changes made by the linter/formatter instead of all changes.

@nedjulius
Copy link
Collaborator

I am not sure if our current pre-commit hooks allow that. Feel free to explore different options or read up about husky and if we can do that.

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