summaryrefslogtreecommitdiff
path: root/features.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-05 07:23:44 -0800
committerGitHub <[email protected]>2020-12-05 07:23:44 -0800
commit137c05e802d5e11a5ab54809bc8be8f61ccece21 (patch)
treeb44997824565f9506744a4259177746b83112e92 /features.go
parent1fabe95fb7275df980ff6ab03fb85eac91c5849d (diff)
Mark some symbols to be deprecated #minor (#698)
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
Diffstat (limited to 'features.go')
-rw-r--r--features.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/features.go b/features.go
index f6474a0..a9f81a1 100644
--- a/features.go
+++ b/features.go
@@ -12,10 +12,10 @@ const (
FeatureThreads Feature = C.GIT_FEATURE_THREADS
// libgit2 was built with HTTPS support built-in
- FeatureHttps Feature = C.GIT_FEATURE_HTTPS
+ FeatureHTTPS Feature = C.GIT_FEATURE_HTTPS
// libgit2 was build with SSH support built-in
- FeatureSsh Feature = C.GIT_FEATURE_SSH
+ FeatureSSH Feature = C.GIT_FEATURE_SSH
// libgit2 was built with nanosecond support for files
FeatureNSec Feature = C.GIT_FEATURE_NSEC