tomGitMemoryClones function
Clones held in memory for the life of the opener — for a build with no file system, where every session starts from a fresh fetch.
Implementation
TomGitCloneOpener tomGitMemoryClones() {
final clones = <String, GitRepository>{};
return (remote) async =>
clones.putIfAbsent(remote.toString(), GitRepository.memory);
}