Commit Graph

4 Commits

Author SHA1 Message Date
lhchavez f0a6f137f2
Make all non-user-creatable structures non-comparable (#802) (#804)
This change makes all non-user-creatable structures non-comparable. This
makes it easier to add changes later that don't introduce breaking
changes from the go compatibility guarantees perspective.

This, of course, implies that this change _is_ a breaking change, but since
these structures are not intended to be created by users (or de-referenced),
it should be okay.

(cherry picked from commit dbe032c347)
2021-09-05 14:07:26 -07:00
lhchavez 4638f434c0
Prepare for the v1.2.0 release (#796) (#798)
This change adds a few more deprecation messages just before we remove
them.

(cherry picked from commit 2077003fa5)
2021-09-04 14:35:11 -07:00
lhchavez 5d2eae54da
Add DiffIgnoreWitespaceEol and deprecate DiffIgnoreWitespaceEol (#774) (#794)
DiffIgnoreWitespaceEol contains a typo and does not have the same name as it's libgit2 counterpart.

Fixes #773

(cherry picked from commit d4524761d9)

Co-authored-by: Gustav Westling <gustav@westling.dev>
2021-09-04 14:03:24 -07:00
lhchavez af81980883
Mark some symbols to be deprecated #minor (#698) (#701)
This change introduces the file deprecated.go, which contains any
constants, functions, and types that are slated to be deprecated in the
next major release.

These symbols are deprecated because they refer to old spellings in
pre-1.0 libgit2. This also makes the build be done with the
`-DDEPRECATE_HARD` flag to avoid regressions.

This, together with
[gorelease](https://godoc.org/golang.org/x/exp/cmd/gorelease)[1] should
make releases safer going forward.

1: More information about how that works at
   https://go.googlesource.com/exp/+/refs/heads/master/apidiff/README.md
(cherry picked from commit 137c05e802)
2020-12-05 11:50:28 -08:00