RE: https://hachyderm.io/@simontatham/117525049019606686 #TIL that #git has a sy...

@simontatham@hachyderm.io

RE: hachyderm.io/@simontatham/1175

#TIL that #git has a syntax to _exclude_ a particular subdirectory in the repository – or more than one of them – from all of 'git diff', 'git grep' and 'git log'.

It's hidden in 'git help glossary', under the entry for 'pathspec', with a sign on the door saying 'Beware of the Leopard'. I'd never known to look there. But now I know!

I expect I'll mostly use it when I want to know about changes in a program's source code, and ignore verbose knock-on effects on the expected results in the test suite. That was what I wanted it for this morning, at least.