I have a sh file that runs pre-commit stage but I want to exclude some paths but I also want to know how to exclude files that ends with "*Test" for example.
Here's my sh file;
for FILE in `git-diff-index HEAD 2>&1 --name-only | sed 's/^:.* //' | uniq` ; do
I know that this exclude path can be written with git-diff-index but I don't know how to write it.
Thanks