为什么 git diff 无法处理子目录中的更改?

Why does git diff fail to work on changes in subdirectories?

为什么 git diff 无法处理子目录中的更改?

当我执行 git diff *c 并且 C 文件位于子目录中时,git 输出一条错误消息。

 $ git diff *c                                                      
 fatal: ambiguous argument '*c': unknown revision or path not in the
 working tree. Use '--' to separate paths from revisions, like
 this: 'git <command> [<revision>...] -- [<file>...]'

需要什么选项才能使 git diff 也列出子目录中的更改?

看起来该命令缺少引号并且它们不是可选的:

   $ git diff -- '*.c'