查看对子文件夹进行更改的提交 [英] View commits that make changes to subfolder

查看:118
本文介绍了查看对子文件夹进行更改的提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设一个名为 drivers 的包含子文件夹的库,例如 ath b43 p54 等。



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

解决方案

您应该可以使用 git log

  git log -  

从手册页:

  [\--]<路径> ... 




仅显示足以解释如何匹配指定路径的文件的提交。 (请参阅简化历史记录



路径可能需要以' - '作为前缀,以便在出现混淆时将它们从选项或修订范围中分开。



Assume a repo called drivers which contain sub-folders, eg., ath, b43, p54, etc.

Without subtreeing (creating new repo), is it possible to view commits that applies to a specific sub-folder, eg., view all commits that made changes to ath sub-folder.

解决方案

You should be able to specify the folder with git log:

git log -- ath

From the man page:

[\--] <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.

这篇关于查看对子文件夹进行更改的提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆