io library
Git repositories on disk, in git's own layout: a bare one (gitOpenDirectory) and one somebody works in (GitLocalRepository).
Uses dart:io; everything else of the library is in the default entry
point, which reaches neither dart:io nor Flutter.
Classes
- GitDirectoryObjectStore
- Objects in a git directory: loose objects and packs with their indexes.
- GitDirectoryRefStore
-
Refs in a git directory: loose ref files over
packed-refs. - GitLocalRepository
-
A repository on disk as a person keeps it: a working repository (its
.gitfolder, or a linked worktree's.gitfile), or a bare one.
Functions
-
gitOpenDirectory(
String path, {bool create = false, String defaultBranch = 'main'}) → GitRepository -
Opens the bare repository at
path, creating it (withdefaultBranchasHEAD) whencreateis set and nothing is there.