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 should help re-add changes #1

Closed
davegaeddert opened this issue Nov 6, 2018 · 1 comment
Closed

Pre-commit should help re-add changes #1

davegaeddert opened this issue Nov 6, 2018 · 1 comment

Comments

@davegaeddert
Copy link
Member

Really need to git add any new changes after running the pre-commit hook.

Maybe the easiest / most universal way to do this is to get a list of all staged files, run the command, then re-add all those same files. If a file was partially staged, then ask/alert or walk through git add -p or something.

https://prettier.io/docs/en/precommit.html#option-5-bash-script

@davegaeddert
Copy link
Member Author

Or, it shouldn't have a role in this. The pre-commit script should work the exact same whether someone is using p or not.

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

1 participant