0.10.0
Version 0.10 adds several features for mutating refs in a working copy and correctly handles extra fields in commit objects.
Added
- There are several new
git.RefMutation
constructors:SetRef
,SetRefIfMatches
, andCreateRef
. git.RefMutation
has a newIsNoop
method to make it easier to check for the zero value.git.CommitOptions
andgit.AmendOptions
have a new field:SkipHooks
.- New method
Git.DeleteBranches
. object.Commit
has a new fieldExtra
that stores any additional commit fields.
Changed
*client.PullStream.ListRefs
and*client.PushStream.Refs
now return a map of refs instead of a slice.
Fixed
object.ParseCommit
no longer rejects commits with extra fields. (#23)