我在GitLab和本地文件历史记录方面遇到了一个问题。
在我们的实例中,文件的 FTLParam.cpp
最后的变化如下
但是,当点击 "历史 "按钮时,会出现以下情况
还有3个变化,是最近做的,似乎被忽略了。事实上,文件中的改动来自于提交的 2ed742cb
.
在本地,最后的变化是正确的。
> git log FTLParam.cpp
commit 2ed742cb90ed951f046811f0314c432aec330033
Author: Gabriele Zampieri <...>
Date: Tue Mar 31 15:36:13 2020 +0200
libs: eeprom: ported a fix
额外的提交是之前一个合并请求的一部分,4月14日合并的。对源分支和 develop
并没有列出这样的提交。实际上,我们需要将文件与 c252f039
.
谁能帮我调查这个问题?
最诚挚的问候,Gabriele
正如torek评论的那样:运行 git log --full-history FTLParam.cpp
.
相比之下,你从 git log FTLParam.cpp
.
看看这是否说明了区别。
该 git-log
人页说。
The following options affect the way the simplification is performed:
Default mode
Simplifies the history to the simplest history explaining the final state of the tree. Simplest because it
prunes some side branches if the end result is the same (i.e. merging branches with the same content)
--full-history
Same as the default mode, but does not prune some history.