Skip to content

0.10.0

Compare
Choose a tag to compare
@zombiezen zombiezen released this 23 Feb 05:31
· 26 commits to main since this release

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, and CreateRef.
  • git.RefMutation has a new IsNoop method to make it easier to check for the zero value.
  • git.CommitOptions and git.AmendOptions have a new field: SkipHooks.
  • New method Git.DeleteBranches.
  • object.Commit has a new field Extra 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)