git library
A storage backend over any git server that speaks smart HTTP(S), with a
local clone as its medium and no git binary (package:tom_git).
Reaches no dart:io: the clone is supplied by an opener — a directory
clone from package:tom_core_storage/io.dart, or one in memory.
Classes
- TomGitLocalRepository
- A repository in a folder on this device, as TomGitStorage needs it.
- TomGitStorage
- Documents in git repositories: on a server reached over smart HTTP(S), or in a folder on this device.
Functions
-
tomGitMemoryClones(
) → TomGitCloneOpener - 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.
Typedefs
-
TomGitCloneOpener
= Future<
GitRepository> Function(Uri remote) -
Opens (creating when needed) the local clone of
remote. -
TomGitLocalOpener
= Future<
TomGitLocalRepository> Function(Uri folder) -
Opens the repository in
folder, afile:URL. ThrowsGitNotARepositoryExceptionwhen the folder holds none.