【发布时间】:2013-09-11 20:35:45
【问题描述】:
我知道这里有非常相似的问题,但它们并没有解决我的问题。 可能有些地方我不太理解。
这是 Fitnesse (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
我想要 2 个提交哈希之间的提交列表。在这种特殊情况下,我想要ecf5891 和7b4a07a 之间的提交,我希望结果是:
ecf5891
7b4a07a
到目前为止,我一直在使用git rev-list commit_hash_from_here^..commit_hash_up_to_here,它在线性历史上运行良好。但是,在这种情况下,我得到了更多的提交。
我已经尝试过了,它按预期工作:
git log --since='<date ecf5891>' --until='<date 7b4a07a>'
(我已经手动搜索了这两个日期)。
一种可能的解决方案是获取 2 个日期并这样做,但我认为应该有更好的方法。
编辑:
7b4a07a 父母是 ecf5891 和 a92b37f。到目前为止,如果我想从ecf5891 转到7b4a07a,解决方案工作正常,但如果我想从a92b37f 转到7b4a07a,我想得到:
7b4a07a
ecf5891
082236e
a92b37f
但我没有收到a92b37f
【问题讨论】: