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