I'm trying to configure my project to just check the staged files in a git pre-commit hook, but I'm struggling on the syntax for --include-only. Can somebody provide an example of how to pass the results of
git diff --name-only --cached
to the pre-commit script?
n
Nivaldo H Bondança
06/20/2024, 3:24 PM
You may have more luck on this issue asking another channel.
I'd guess there is something out there in StackOverflow/Google about this, but I haven't search to be able to assert that.
t
Trey
06/20/2024, 3:33 PM
I've tried searching for it, but I couldn't find the right formula that worked.