更新时间:2022-11-27 10:55:51
Yes, if you ensure that git expands a glob rather than your shell then it will match at any level so something like this (quotes are important) should work fine.
git diff -- '*.c' '*.h'
应该使用什么选项将git diff限制为一组给定的文件扩展名?