mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
InternalUtilsなモジュールに移植WIP
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user