Skip to main content

tom_git 0.2.0 copy "tom_git: ^0.2.0" to clipboard
tom_git: ^0.2.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.2.0 #

  • A request that gets no answer in a web page says that the server is either not answering or does not allow requests from a web page (no CORS headers on its git endpoints): the browser reports both in the same words, and the sentence used to name only the first (gitUnreachableMessage).

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, through io.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 .git folder or a linked worktree's .git file (objects and branches from its commondir), a bare repository, or a .git folder itself. headBranch() and checkedOutBranches() read HEAD when asked, so a caller can refuse to move a branch some working tree has checked out. GitNotARepositoryException is in the default entry point.
  • package:tom_git/testing.dart: GitMemoryServer.
0
likes
150
points
991
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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, and the smart HTTP transport for fetch and push.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

archive, crypto, http, meta, path

More

Packages that depend on tom_git