简体   繁体   English

Git:显示修改给定文件的提交的完整日志(或差异)

[英]Git: show full log (or diff) of commits which modified a given file

If I do: 如果我做:

git log --stat -p -- my/file

I get the list of every commit which modified my/file , but it only displays the file list and diff (respectively --stat and -p ) regarding my/file , thus hiding the full commit changelog. 我得到了修改了my/file的每个提交的列表,但是只显示了关于my/file的文件列表和diff(分别是--stat-p ),从而隐藏了完整的提交更改日志。

How can I display the full log (modified files and full diff) of this list of commits? 如何显示此提交列表的完整日志(修改的文件和完整的差异)?

Are you looking for: 您是否在寻找:

--full-diff
           Without this flag, "git log -p <path>..." shows commits that touch
           the specified paths, and diffs about the same specified paths. With
           this, the full diff is shown for commits that touch the specified
           paths; this means that "<path>..." limits only commits, and doesn't
           limit diff for those commits.

?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM