Skip to content

Commit 2535007

Browse files
committed
made Repository::git public to be able to access the underlying git object.
1 parent fdde881 commit 2535007

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/de/variantsync/evolution/repository/Repository.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,13 @@ public Path getPath() {
108108
return path;
109109
}
110110

111-
protected Git git() throws IOException {
111+
/**
112+
* Grants access to the underlying git object.
113+
*
114+
* @return The wrapped git object.
115+
* @throws IOException iff the repository could not be loaded for some reason.
116+
*/
117+
public Git git() throws IOException {
112118
if (git == null) {
113119
git = GitUtil.loadGitRepo(path.toFile());
114120
}

0 commit comments

Comments
 (0)