Potential API changes for the next major release. This changes will be merged into the development branch main, before they are released on the upcoming v6.0.0 release.
Changes:
utils/sync.GetZlibWriter now returns sync.ZlibWriter (an interface aliased to plugin.ZlibWriter) instead of *zlib.Writer, and PutZlibWriter accepts the same interface. Callers that previously relied on the concrete *zlib.Writer return type will need to update to the interface, whose method set is Write, Close, Reset(io.Writer), and Flush.
Potential breaking changes:
Potential API changes for the next major release. This changes will be merged into the development branch main, before they are released on the upcoming
v6.0.0release.Changes:
SHA256 Support: The support for SHA256 and SHA1 in parallel may require API changes on
plumbing.Hashor where it is currently used.Git config management (TBC)
worktree_status.gogo-git/worktree_status.go
Line 273 in cf196ea
go-git/worktree_status.go
Line 372 in cf196ea
difftree.gooptions.gogo-git/options.go
Line 711 in cf196ea
repository.gogo-git/repository.go
Line 561 in cf196ea
go-git/repository.go
Line 426 in 0a1c5ab
go-git/repository.go
Line 439 in 0a1c5ab
server.gogo-git/plumbing/transport/server/server.go
Line 92 in cf196ea
commitgraphgo-git/plumbing/format/commitgraph/memory.go
Line 10 in cf196ea
go-git/plumbing/format/commitgraph/doc.go
Line 3 in cf196ea
go-git/plumbing/format/commitgraph/encoder.go
Line 14 in cf196ea
go-git/plumbing/format/commitgraph/file.go
Line 16 in cf196ea
go-git/plumbing/format/commitgraph/commitgraph.go
Line 12 in cf196ea
make osfs.BoundOS the default osfs for
Plainoperations.All tags not being returned by default. Fix tests TestFetchOfMissingObjects and TestFetchWildcardTags #1459
New transport API
config.Version_X -> config.VersionX as part of *: enable revive linter #1771.
Config validation no longer rejects
branch.*.mergevalues without theref/prefix. config parser rejects branch.*.merge values #1923Change zlib types
sync.GetZlibWriter/sync.PutZlibWriterutils: sync, Make zlib compression pluggable via x/plugin #2012utils/sync.GetZlibWriternow returnssync.ZlibWriter(an interface aliased toplugin.ZlibWriter) instead of*zlib.Writer, andPutZlibWriteraccepts the same interface. Callers that previously relied on the concrete*zlib.Writerreturn type will need to update to the interface, whose method set isWrite,Close,Reset(io.Writer), andFlush..gitignorelogic now matches upstream, which was not always the case up tov5. Implement Git-compatible wildmatch for gitignore patterns #1940Potential breaking changes:
repository.gogo-git/repository.go
Line 440 in 0a1c5ab
.Close()repositories as part of git: add Repository.Close(), use it in tests to fix Windows file handle leak #1906.