【发布时间】:2012-11-27 19:14:17
【问题描述】:
看起来可以使用“git log”命令查看 git 存储库中的所有历史记录。 Git: How to retrieve all commits from all branches without notes?
如何使用jgit达到同样的效果?
【问题讨论】:
看起来可以使用“git log”命令查看 git 存储库中的所有历史记录。 Git: How to retrieve all commits from all branches without notes?
如何使用jgit达到同样的效果?
【问题讨论】:
例如这样:
...
Git git = new Git(repository);
Iterable<RevCommit> commits = git.log().all().call();
for (RevCommit commit : commits) {
...
}
【讨论】: