0
看起来像使用“git log”命令可以从git存储库中查看所有历史记录。 Git: How to retrieve all commits from all branches without notes?如何使用jgit从所有分支中检索所有历史记录?
如何使用jgit实现相同的结果?
看起来像使用“git log”命令可以从git存储库中查看所有历史记录。 Git: How to retrieve all commits from all branches without notes?如何使用jgit从所有分支中检索所有历史记录?
如何使用jgit实现相同的结果?
喜欢本作例子:
...
Git git = new Git(repository);
Iterable<RevCommit> commits = git.log().all().call();
for (RevCommit commit : commits) {
...
}