InternalUtilsなモジュールに移植WIP

This commit is contained in:
r-ca committed 2023-12-12 11:00:26 +09:00
1 parent 6bc741d0b0
commit 119140a6bc
5 files changed
+68 -2

No files matched your search

@@ -8,5 +8,4 @@ public interface UtilsRepo {
Path getExternalFilesDirPath();
}
@@ -1,10 +1,21 @@
package one.nem.lacerta.source.jgit;
import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
public class RepoUtils {
// Internal Utils
public static String getRepoName(Repository repo) {
public Repository createRepo(String id, ) {
Repository repository = FileRepositoryBuilder.create(
)
}
public Repository getRepo(String id) {
// WIP
}
public String getRepoName(Repository repo) {
return repo.getDirectory().getParentFile().getName();
}