is there a way to check if a file is being committed and exit with an error ?
I have a file in git that needs to be there but should never be modified and i was hoping to use husky as a pre-commit - so if anybody tries to modify the file and commit then it would throw an error.
If in future I need to modify the file then i can just disable the pre-commit.
the file is a configuration that i need to edit a lot when developing but the changes should never be committed.
I was hoping to use husky as a check to ensure that i dont.