So prior to running git commit I often will run the following:
git commit
git grep --cached -l -I \"debugger\"
I thought it was similar to:>
If you have a Unix-like shell available, the answer is pretty simple:
git grep --cached "debugger" $(git diff --cached --name-only)
This will run git grep on the list of staged files.
git grep