更新时间:2022-05-08 03:30:08
答案被埋在 git log
文档,但是由于几乎所有内容都使用rev-list
,因此我认为这是记住的一般查找位置的正确位置):
The answer is buried in the git rev-list
documentation (this same text is included in the git log
documentation but since virtually everything uses rev-list
, I think it's the right place to remember as your general lookup location):
简化历史记录
有时您只对历史的某些部分感兴趣,例如 提交修改特定的< path>.但是有两个部分 历史简化,一部分是选择提交,另一部分是选择提交 是如何做到的,因为有多种策略可以简化 历史.
History Simplification
Sometimes you are only interested in parts of the history, for example the commits modifying a particular <path>. But there are two parts of History Simplification, one part is selecting the commits and the other is how to do it, as there are various strategies to simplify the history.
以下选项选择要显示的提交:
The following options select the commits to be shown:
[snip]
以下选项会影响简化的方式:
The following options affect the way the simplification is performed:
--full-history
--full-history
(大概)想要--full-history
模式时,您正在使用默认模式.请注意,当您使用< paths>引入历史选择的符号:这就是为什么不需要不需要--full-history
的原因.
You're using the default mode when you (presumably) want --full-history
mode. Note that history simplification gets activated when you use the <paths> notation to introduce history selection: that's why you don't need --full-history
without it.