tom_git 0.1.0
tom_git: ^0.1.0 copied to clipboard
Git in pure Dart, for applications that must not need a git binary: the object model, loose objects and packfiles (read with deltas, written without), editing a tree without a working tree or index, a [...]
Changelog #
0.1.0 #
- Git objects (blob, tree, commit), loose objects, and pack version 2 with its version 2 index, read and write; deltas resolved on read.
GitRepository: reading, tree editing and committing without an index or a working tree, and the objects a push must send; in memory or, throughio.dart, a bare repository in git's own layout.GitHttpRemote: smart HTTP fetch (protocol v2, v0 fallback) and push (report-status,side-band-64k), with token credentials;fetchBranch,pushBranch,deleteRemoteBranch, a lost race measured against a fresh ref listing.GitLocalRepository(io.dart): a repository somebody works in, opened from the folder they picked — a working repository through its.gitfolder or a linked worktree's.gitfile (objects and branches from itscommondir), a bare repository, or a.gitfolder itself.headBranch()andcheckedOutBranches()readHEADwhen asked, so a caller can refuse to move a branch some working tree has checked out.GitNotARepositoryExceptionis in the default entry point.package:tom_git/testing.dart:GitMemoryServer.