0.9.0
Version 0.9 adds a new package for interacting with remote Git repositories and expands the packfile package to handle random access.
Added
- A new
packfile/clientpackage enables downloading commits from and uploading commits to remote Git repositories. (#7) - The
packfile.DeltaReadertype is a flexible way of expanding a deltified object from a packfile. - The
packfile.Undeltifiertype decompresses objects from packfiles. - The
packfile.Indextype stores a packfile object ID lookup table that is nteroperable with Git packfile index files. (#12) packfile.ReadHeaderenables random access to a packfile.*object.Commitand*object.Tagnow implementBinaryMarshalerandBinaryUnmarshalerin addition toTextMarshalerandTextUnmarshaler. This is for symmetry withobject.Tree.object.Prefixallows marshaling and unmarshaling the"blob 42\x00"prefix used as part of the Git object hash.- The new
*Git.Cloneand*Git.CloneBaremethods clone repositories. git.URLFromPathconverts a filesystem path into a URL.
Changed
- The
githashpackage is now the home for theReftype. This permits ref string manipulation without depending on the largergitpackage.git.Refis now a type alias forgithash.Ref.
Removed
- Removed the
packfile.ApplyDeltafunction. Thepackfile.DeltaReadertype performs the same function but permits more control over how it's used.
Fixed
Ref.IsValidproduces less false positives than before. (#16)