我知道这里有很多类似的问题,但是他们没有解决我的问题。 也许有些事我不太明白。
这是适应性提交历史(https://github.com/unclebob/fitnesse/)的一部分:
* | | | | | | | | | | | | | | | fa86be8 Avoid possible issue when using CachingPage under heavy memory load.
|/ / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | 7b4a07a Merge pull request #256 from barredijkstra/fitnesse_issue_250
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | ecf5891 Fixed test checking for OS specific exception message.
| * | | | | | | | | | | | | | | 082236e Added rendering of cause exceptions. Fix for unclebob/fitnesse#250
* | | | | | | | | | | | | | | | a92b37f Merge pull request #243 from amolenaar/fix/243-hash-table-rendering
我想要两个提交哈希之间的提交列表。在这种特殊情况下,我希望在 ecf5891
和 7b4a07a
之间进行提交,我希望结果是:
ecf5891
7b4a07a
到目前为止,我一直在使用 git rev-list commit_hash_from_here^..commit_hash_up_to_here
,它的工作良好的线性历史。然而,在这种情况下,我得到了更多的提交。
我已经试过了,效果和预期的一样:
git log --since='<date ecf5891>' --until='<date 7b4a07a>'
(我已经手动搜索了这两个日期)。
一个可能的解决办法是得到两个日期,只是这样做,但我认为应该有一个更好的方法。
编辑:
父母是 ecf5891
和 a92b37f
。到目前为止,如果我想从 ecf5891
到 7b4a07a
,解决方案工作得很好,但是如果我想从 a92b37f
到 7b4a07a
,我想得到:
7b4a07a
ecf5891
082236e
a92b37f
但我没有 a92b37f