How can I exclude an entire directory from my Git diff (in this case /spec)?
I'm creating a diff for our entire software release using the git diff command. However, the changes to the spec folder are irrelevant for this procedure, and just create headaches. Now I know I can do
git diff previous_release..current_release app/
This would create a diff for all the changes in the app directory, but not for instance, in the lib/ directory. How can I accomplish this task?
I just want to be clear, I know I can just string the parameters of all of my directories on the end, minus /spec. I was hoping there was a way to truly exclude a single directory in the command.