Commit Graph

4 Commits

Author SHA1 Message Date
lhchavez 2f3b2b5f25
Make all non-user-creatable structures non-comparable (#802) (#805)
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:06:59 -07:00
lhchavez 13670e24c5
Prepare for the v1.2.0 release (#796) (#799)
This change adds a few more deprecation messages just before we remove
them.

(cherry picked from commit 2077003fa5)
2021-09-04 14:37:03 -07:00
lhchavez 0c87b5a542
Add DiffIgnoreWitespaceEol and deprecate DiffIgnoreWitespaceEol (#774) (#795)
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:17 -07:00
lhchavez 5f0640baed
Mark some symbols to be deprecated #minor (#698) (#702)
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 13:12:04 -08:00