Task/bael 10829 (#5844)

* BAEL-10829 Clean up the parent pom of the tutorials project

- Cleaned up projects list for default-first and integration-lite-first profiles

* BAEL-10829 Fixing unit test in JGit

* BAEL-10829 Clean up the parent pom of the tutorials project

-Updated modules list for default-second and integration-lite-second profiles

* BAEL-10829 Fixed repository for structurizr libraries and api changes done in StructurizrSimple to incorporate new version
This commit is contained in:
Dhawal Kapil
2018-12-10 23:07:46 +05:30
committed by Eugen
parent 22d22c7c4e
commit 36decb42b9
6 changed files with 617 additions and 355 deletions

View File

@@ -28,14 +28,14 @@ public class Log {
System.out.println("Had " + count + " commits overall on current branch");
logs = git.log()
.add(repository.resolve("remotes/origin/testbranch"))
.add(repository.resolve(git.getRepository().getFullBranch()))
.call();
count = 0;
for (RevCommit rev : logs) {
System.out.println("Commit: " + rev /* + ", name: " + rev.getName() + ", id: " + rev.getId().getName() */);
count++;
}
System.out.println("Had " + count + " commits overall on test-branch");
System.out.println("Had " + count + " commits overall on "+git.getRepository().getFullBranch());
logs = git.log()
.all()

View File

@@ -1,3 +1,5 @@
package com.baeldung.jgit;
import com.baeldung.jgit.helper.Helper;
import org.eclipse.jgit.lib.ObjectLoader;
import org.eclipse.jgit.lib.ObjectReader;