diff --git a/src/main/java/net/kemitix/gitdb/GitDB.java b/src/main/java/net/kemitix/gitdb/GitDB.java index 9a4bbb1..2f25f0c 100644 --- a/src/main/java/net/kemitix/gitdb/GitDB.java +++ b/src/main/java/net/kemitix/gitdb/GitDB.java @@ -48,6 +48,13 @@ public interface GitDB { ); } + /** + * Open an existing local gitdb. + * + * @param dbDir the path to open as a local repo + * @return a GitDB instance for the local gitdb + * @throws IOException if there {@code dbDir} is a file, the directory does not exist or is not a repo + */ static GitDBLocal openLocal(final Path dbDir) throws IOException { try { final Git git = Git.open(dbDir.toFile());