java git-library with configurable in-memory FileSystem

503 Views Asked by At

Is there a java-library that operates on a user-provided java.nio.file.FileSystem ?

I'm using googles jimfs in-memory-filesystem implementation and would like to clone a git repository into my filesystem and perform a complex series of operations but don't touch the disk.

Unfortunately it does not seem like jgit-api provides the possibility to operate on a FileSystem of choice.

EDIT:

The reason for the incompatibility between jgit and jimfs seems to be in the fact that jgit's api uses the file and jimfs uses paths as its main abstraction. Unfortunately jimfs does not implement Path.toFile(). Any technical reasons for that ?

0

There are 0 best solutions below