I just started to use a pre-commit hook in a project, in that script I run some grunt tasks like jshint and jsbeautifier.
The thing is that jsbeautifier does modify the files, so when it does, I have to restage the modified files.
Would it be possible to only have to stage those files only once?