You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this has been asked/raised before, but is it possible to implement a locking mechanism for pre-commits? For example, while running my pre-commit hooks in a terminal, running git add <new_file> shouldn't succeed, because otherwise my hooks wouldn't have run on that new file.
The text was updated successfully, but these errors were encountered:
@jefhar No, I don't want to disable hooks. I still want to run my pre-commit hooks, but while my pre-commit hook is running, disallow git from staging any further files.
Apologies if this has been asked/raised before, but is it possible to implement a locking mechanism for pre-commits? For example, while running my pre-commit hooks in a terminal, running
git add <new_file>
shouldn't succeed, because otherwise my hooks wouldn't have run on that new file.The text was updated successfully, but these errors were encountered: