Looks like it is possible to see all history from git repository using "git log" command. Git: How to retrieve all commits from all branches without notes?
How to achieve the same result using jgit?
Like this for example:
...
Git git = new Git(repository);
Iterable<RevCommit> commits = git.log().all().call();
for (RevCommit commit : commits) {
...
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.