How do you do git grep and limit files checked for a set of files. I would like to be able to grep the contents of .cpp and .h files looking for MyFunc. eg:
git grep "MyFunc" -- *.[hc]*
However, this also corresponds to .c and .cs files.
git grep file-extension
stk_sfr Feb 06 '14 at 9:59 a.m. 2014-02-06 09:59
source share