查看对子文件夹进行更改的提交

View commits that make changes to subfolder

假设一个名为 drivers 的存储库包含子文件夹,例如 athb43p54

没有子树(创建新的 repo),是否可以查看适用于特定子文件夹的提交,例如,查看对 ath 子文件夹进行更改的所有提交。

您应该可以指定文件夹 git log:

git log -- ath

来自手册页:

[\--] <path>…

Show only commits that are enough to explain how the files that match the specified paths came to be. (See Historization Simplication)

Paths may need to be prefixed with ‘--’ to separate them from options or the revision range, when confusion arises.