Prepare for the v1.2.0 release
This change adds a few more deprecation messages just before we remove them.
This commit is contained in:
parent
d4524761d9
commit
6afb69cebb
200
deprecated.go
200
deprecated.go
|
@ -13,10 +13,10 @@ import (
|
||||||
|
|
||||||
// blob.go
|
// blob.go
|
||||||
|
|
||||||
// BlobChunkCallback is not used.
|
// Deprecated: BlobChunkCallback is not used.
|
||||||
type BlobChunkCallback func(maxLen int) ([]byte, error)
|
type BlobChunkCallback func(maxLen int) ([]byte, error)
|
||||||
|
|
||||||
// BlobCallbackData is not used.
|
// Deprecated: BlobCallbackData is not used.
|
||||||
type BlobCallbackData struct {
|
type BlobCallbackData struct {
|
||||||
Callback BlobChunkCallback
|
Callback BlobChunkCallback
|
||||||
Error error
|
Error error
|
||||||
|
@ -24,12 +24,12 @@ type BlobCallbackData struct {
|
||||||
|
|
||||||
// checkout.go
|
// checkout.go
|
||||||
|
|
||||||
// CheckoutOpts is a deprecated alias of CheckoutOptions.
|
// Deprecated: CheckoutOpts is a deprecated alias of CheckoutOptions.
|
||||||
type CheckoutOpts = CheckoutOptions
|
type CheckoutOpts = CheckoutOptions
|
||||||
|
|
||||||
// credentials.go
|
// credentials.go
|
||||||
|
|
||||||
// CredType is a deprecated alias of CredentialType
|
// Deprecated: CredType is a deprecated alias of CredentialType
|
||||||
type CredType = CredentialType
|
type CredType = CredentialType
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -39,35 +39,35 @@ const (
|
||||||
CredTypeDefault = CredentialTypeDefault
|
CredTypeDefault = CredentialTypeDefault
|
||||||
)
|
)
|
||||||
|
|
||||||
// Cred is a deprecated alias of Credential
|
// Deprecated: Cred is a deprecated alias of Credential
|
||||||
type Cred = Credential
|
type Cred = Credential
|
||||||
|
|
||||||
// NewCredUsername is a deprecated alias of NewCredentialUsername.
|
// Deprecated: NewCredUsername is a deprecated alias of NewCredentialUsername.
|
||||||
func NewCredUsername(username string) (*Cred, error) {
|
func NewCredUsername(username string) (*Cred, error) {
|
||||||
return NewCredentialUsername(username)
|
return NewCredentialUsername(username)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCredUserpassPlaintext is a deprecated alias of NewCredentialUserpassPlaintext.
|
// Deprecated: NewCredUserpassPlaintext is a deprecated alias of NewCredentialUserpassPlaintext.
|
||||||
func NewCredUserpassPlaintext(username string, password string) (*Cred, error) {
|
func NewCredUserpassPlaintext(username string, password string) (*Cred, error) {
|
||||||
return NewCredentialUserpassPlaintext(username, password)
|
return NewCredentialUserpassPlaintext(username, password)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCredSshKey is a deprecated alias of NewCredentialSshKey.
|
// Deprecated: NewCredSshKey is a deprecated alias of NewCredentialSshKey.
|
||||||
func NewCredSshKey(username string, publicKeyPath string, privateKeyPath string, passphrase string) (*Cred, error) {
|
func NewCredSshKey(username string, publicKeyPath string, privateKeyPath string, passphrase string) (*Cred, error) {
|
||||||
return NewCredentialSSHKey(username, publicKeyPath, privateKeyPath, passphrase)
|
return NewCredentialSSHKey(username, publicKeyPath, privateKeyPath, passphrase)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCredSshKeyFromMemory is a deprecated alias of NewCredentialSSHKeyFromMemory.
|
// Deprecated: NewCredSshKeyFromMemory is a deprecated alias of NewCredentialSSHKeyFromMemory.
|
||||||
func NewCredSshKeyFromMemory(username string, publicKey string, privateKey string, passphrase string) (*Cred, error) {
|
func NewCredSshKeyFromMemory(username string, publicKey string, privateKey string, passphrase string) (*Cred, error) {
|
||||||
return NewCredentialSSHKeyFromMemory(username, publicKey, privateKey, passphrase)
|
return NewCredentialSSHKeyFromMemory(username, publicKey, privateKey, passphrase)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCredSshKeyFromAgent is a deprecated alias of NewCredentialSSHFromAgent.
|
// Deprecated: NewCredSshKeyFromAgent is a deprecated alias of NewCredentialSSHFromAgent.
|
||||||
func NewCredSshKeyFromAgent(username string) (*Cred, error) {
|
func NewCredSshKeyFromAgent(username string) (*Cred, error) {
|
||||||
return NewCredentialSSHKeyFromAgent(username)
|
return NewCredentialSSHKeyFromAgent(username)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCredDefault is a deprecated alias fof NewCredentialDefault.
|
// Deprecated: NewCredDefault is a deprecated alias fof NewCredentialDefault.
|
||||||
func NewCredDefault() (*Cred, error) {
|
func NewCredDefault() (*Cred, error) {
|
||||||
return NewCredentialDefault()
|
return NewCredentialDefault()
|
||||||
}
|
}
|
||||||
|
@ -82,91 +82,147 @@ const (
|
||||||
// features.go
|
// features.go
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// FeatureHttps is a deprecated alias of FeatureHTTPS.
|
// Deprecated: FeatureHttps is a deprecated alias of FeatureHTTPS.
|
||||||
FeatureHttps = FeatureHTTPS
|
FeatureHttps = FeatureHTTPS
|
||||||
|
|
||||||
// FeatureSsh is a deprecated alias of FeatureSSH.
|
// Deprecated: FeatureSsh is a deprecated alias of FeatureSSH.
|
||||||
FeatureSsh = FeatureSSH
|
FeatureSsh = FeatureSSH
|
||||||
)
|
)
|
||||||
|
|
||||||
// git.go
|
// git.go
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ErrClassNone = ErrorClassNone
|
// Deprecated: ErrClassNone is a deprecated alias of ErrorClassNone.
|
||||||
ErrClassNoMemory = ErrorClassNoMemory
|
ErrClassNone = ErrorClassNone
|
||||||
ErrClassOs = ErrorClassOS
|
// Deprecated: ErrClassNoMemory is a deprecated alias of ErrorClassNoMemory.
|
||||||
ErrClassInvalid = ErrorClassInvalid
|
ErrClassNoMemory = ErrorClassNoMemory
|
||||||
ErrClassReference = ErrorClassReference
|
// Deprecated: ErrClassOs is a deprecated alias of ErrorClassOS.
|
||||||
ErrClassZlib = ErrorClassZlib
|
ErrClassOs = ErrorClassOS
|
||||||
|
// Deprecated: ErrClassInvalid is a deprecated alias of ErrorClassInvalid.
|
||||||
|
ErrClassInvalid = ErrorClassInvalid
|
||||||
|
// Deprecated: ErrClassReference is a deprecated alias of ErrorClassReference.
|
||||||
|
ErrClassReference = ErrorClassReference
|
||||||
|
// Deprecated: ErrClassZlib is a deprecated alias of ErrorClassZlib.
|
||||||
|
ErrClassZlib = ErrorClassZlib
|
||||||
|
// Deprecated: ErrClassRepository is a deprecated alias of ErrorClassRepository.
|
||||||
ErrClassRepository = ErrorClassRepository
|
ErrClassRepository = ErrorClassRepository
|
||||||
ErrClassConfig = ErrorClassConfig
|
// Deprecated: ErrClassConfig is a deprecated alias of ErrorClassConfig.
|
||||||
ErrClassRegex = ErrorClassRegex
|
ErrClassConfig = ErrorClassConfig
|
||||||
ErrClassOdb = ErrorClassOdb
|
// Deprecated: ErrClassRegex is a deprecated alias of ErrorClassRegex.
|
||||||
ErrClassIndex = ErrorClassIndex
|
ErrClassRegex = ErrorClassRegex
|
||||||
ErrClassObject = ErrorClassObject
|
// Deprecated: ErrClassOdb is a deprecated alias of ErrorClassOdb.
|
||||||
ErrClassNet = ErrorClassNet
|
ErrClassOdb = ErrorClassOdb
|
||||||
ErrClassTag = ErrorClassTag
|
// Deprecated: ErrClassIndex is a deprecated alias of ErrorClassIndex.
|
||||||
ErrClassTree = ErrorClassTree
|
ErrClassIndex = ErrorClassIndex
|
||||||
ErrClassIndexer = ErrorClassIndexer
|
// Deprecated: ErrClassObject is a deprecated alias of ErrorClassObject.
|
||||||
ErrClassSSL = ErrorClassSSL
|
ErrClassObject = ErrorClassObject
|
||||||
ErrClassSubmodule = ErrorClassSubmodule
|
// Deprecated: ErrClassNet is a deprecated alias of ErrorClassNet.
|
||||||
ErrClassThread = ErrorClassThread
|
ErrClassNet = ErrorClassNet
|
||||||
ErrClassStash = ErrorClassStash
|
// Deprecated: ErrClassTag is a deprecated alias of ErrorClassTag.
|
||||||
ErrClassCheckout = ErrorClassCheckout
|
ErrClassTag = ErrorClassTag
|
||||||
ErrClassFetchHead = ErrorClassFetchHead
|
// Deprecated: ErrClassTree is a deprecated alias of ErrorClassTree.
|
||||||
ErrClassMerge = ErrorClassMerge
|
ErrClassTree = ErrorClassTree
|
||||||
ErrClassSsh = ErrorClassSSH
|
// Deprecated: ErrClassIndexer is a deprecated alias of ErrorClassIndexer.
|
||||||
ErrClassFilter = ErrorClassFilter
|
ErrClassIndexer = ErrorClassIndexer
|
||||||
ErrClassRevert = ErrorClassRevert
|
// Deprecated: ErrClassSSL is a deprecated alias of ErrorClassSSL.
|
||||||
ErrClassCallback = ErrorClassCallback
|
ErrClassSSL = ErrorClassSSL
|
||||||
ErrClassRebase = ErrorClassRebase
|
// Deprecated: ErrClassSubmodule is a deprecated alias of ErrorClassSubmodule.
|
||||||
ErrClassPatch = ErrorClassPatch
|
ErrClassSubmodule = ErrorClassSubmodule
|
||||||
|
// Deprecated: ErrClassThread is a deprecated alias of ErrorClassThread.
|
||||||
|
ErrClassThread = ErrorClassThread
|
||||||
|
// Deprecated: ErrClassStash is a deprecated alias of ErrorClassStash.
|
||||||
|
ErrClassStash = ErrorClassStash
|
||||||
|
// Deprecated: ErrClassCheckout is a deprecated alias of ErrorClassCheckout.
|
||||||
|
ErrClassCheckout = ErrorClassCheckout
|
||||||
|
// Deprecated: ErrClassFetchHead is a deprecated alias of ErrorClassFetchHead.
|
||||||
|
ErrClassFetchHead = ErrorClassFetchHead
|
||||||
|
// Deprecated: ErrClassMerge is a deprecated alias of ErrorClassMerge.
|
||||||
|
ErrClassMerge = ErrorClassMerge
|
||||||
|
// Deprecated: ErrClassSsh is a deprecated alias of ErrorClassSSH.
|
||||||
|
ErrClassSsh = ErrorClassSSH
|
||||||
|
// Deprecated: ErrClassFilter is a deprecated alias of ErrorClassFilter.
|
||||||
|
ErrClassFilter = ErrorClassFilter
|
||||||
|
// Deprecated: ErrClassRevert is a deprecated alias of ErrorClassRevert.
|
||||||
|
ErrClassRevert = ErrorClassRevert
|
||||||
|
// Deprecated: ErrClassCallback is a deprecated alias of ErrorClassCallback.
|
||||||
|
ErrClassCallback = ErrorClassCallback
|
||||||
|
// Deprecated: ErrClassRebase is a deprecated alias of ErrorClassRebase.
|
||||||
|
ErrClassRebase = ErrorClassRebase
|
||||||
|
// Deprecated: ErrClassPatch is a deprecated alias of ErrorClassPatch.
|
||||||
|
ErrClassPatch = ErrorClassPatch
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ErrOk = ErrorCodeOK
|
// Deprecated: ErrOk is a deprecated alias of ErrorCodeOK.
|
||||||
ErrGeneric = ErrorCodeGeneric
|
ErrOk = ErrorCodeOK
|
||||||
ErrNotFound = ErrorCodeNotFound
|
// Deprecated: ErrGeneric is a deprecated alias of ErrorCodeGeneric.
|
||||||
ErrExists = ErrorCodeExists
|
ErrGeneric = ErrorCodeGeneric
|
||||||
ErrAmbiguous = ErrorCodeAmbiguous
|
// Deprecated: ErrNotFound is a deprecated alias of ErrorCodeNotFound.
|
||||||
ErrAmbigious = ErrorCodeAmbiguous
|
ErrNotFound = ErrorCodeNotFound
|
||||||
ErrBuffs = ErrorCodeBuffs
|
// Deprecated: ErrExists is a deprecated alias of ErrorCodeExists.
|
||||||
ErrUser = ErrorCodeUser
|
ErrExists = ErrorCodeExists
|
||||||
ErrBareRepo = ErrorCodeBareRepo
|
// Deprecated: ErrAmbiguous is a deprecated alias of ErrorCodeAmbiguous.
|
||||||
ErrUnbornBranch = ErrorCodeUnbornBranch
|
ErrAmbiguous = ErrorCodeAmbiguous
|
||||||
ErrUnmerged = ErrorCodeUnmerged
|
// Deprecated: ErrAmbigious is a deprecated alias of ErrorCodeAmbiguous.
|
||||||
|
ErrAmbigious = ErrorCodeAmbiguous
|
||||||
|
// Deprecated: ErrBuffs is a deprecated alias of ErrorCodeBuffs.
|
||||||
|
ErrBuffs = ErrorCodeBuffs
|
||||||
|
// Deprecated: ErrUser is a deprecated alias of ErrorCodeUser.
|
||||||
|
ErrUser = ErrorCodeUser
|
||||||
|
// Deprecated: ErrBareRepo is a deprecated alias of ErrorCodeBareRepo.
|
||||||
|
ErrBareRepo = ErrorCodeBareRepo
|
||||||
|
// Deprecated: ErrUnbornBranch is a deprecated alias of ErrorCodeUnbornBranch.
|
||||||
|
ErrUnbornBranch = ErrorCodeUnbornBranch
|
||||||
|
// Deprecated: ErrUnmerged is a deprecated alias of ErrorCodeUnmerged.
|
||||||
|
ErrUnmerged = ErrorCodeUnmerged
|
||||||
|
// Deprecated: ErrNonFastForward is a deprecated alias of ErrorCodeNonFastForward.
|
||||||
ErrNonFastForward = ErrorCodeNonFastForward
|
ErrNonFastForward = ErrorCodeNonFastForward
|
||||||
ErrInvalidSpec = ErrorCodeInvalidSpec
|
// Deprecated: ErrInvalidSpec is a deprecated alias of ErrorCodeInvalidSpec.
|
||||||
ErrConflict = ErrorCodeConflict
|
ErrInvalidSpec = ErrorCodeInvalidSpec
|
||||||
ErrLocked = ErrorCodeLocked
|
// Deprecated: ErrConflict is a deprecated alias of ErrorCodeConflict.
|
||||||
ErrModified = ErrorCodeModified
|
ErrConflict = ErrorCodeConflict
|
||||||
ErrAuth = ErrorCodeAuth
|
// Deprecated: ErrLocked is a deprecated alias of ErrorCodeLocked.
|
||||||
ErrCertificate = ErrorCodeCertificate
|
ErrLocked = ErrorCodeLocked
|
||||||
ErrApplied = ErrorCodeApplied
|
// Deprecated: ErrModified is a deprecated alias of ErrorCodeModified.
|
||||||
ErrPeel = ErrorCodePeel
|
ErrModified = ErrorCodeModified
|
||||||
ErrEOF = ErrorCodeEOF
|
// Deprecated: ErrAuth is a deprecated alias of ErrorCodeAuth.
|
||||||
ErrUncommitted = ErrorCodeUncommitted
|
ErrAuth = ErrorCodeAuth
|
||||||
ErrDirectory = ErrorCodeDirectory
|
// Deprecated: ErrCertificate is a deprecated alias of ErrorCodeCertificate.
|
||||||
ErrMergeConflict = ErrorCodeMergeConflict
|
ErrCertificate = ErrorCodeCertificate
|
||||||
ErrPassthrough = ErrorCodePassthrough
|
// Deprecated: ErrApplied is a deprecated alias of ErrorCodeApplied.
|
||||||
ErrIterOver = ErrorCodeIterOver
|
ErrApplied = ErrorCodeApplied
|
||||||
ErrApplyFail = ErrorCodeApplyFail
|
// Deprecated: ErrPeel is a deprecated alias of ErrorCodePeel.
|
||||||
|
ErrPeel = ErrorCodePeel
|
||||||
|
// Deprecated: ErrEOF is a deprecated alias of ErrorCodeEOF.
|
||||||
|
ErrEOF = ErrorCodeEOF
|
||||||
|
// Deprecated: ErrUncommitted is a deprecated alias of ErrorCodeUncommitted.
|
||||||
|
ErrUncommitted = ErrorCodeUncommitted
|
||||||
|
// Deprecated: ErrDirectory is a deprecated alias of ErrorCodeDirectory.
|
||||||
|
ErrDirectory = ErrorCodeDirectory
|
||||||
|
// Deprecated: ErrMergeConflict is a deprecated alias of ErrorCodeMergeConflict.
|
||||||
|
ErrMergeConflict = ErrorCodeMergeConflict
|
||||||
|
// Deprecated: ErrPassthrough is a deprecated alias of ErrorCodePassthrough.
|
||||||
|
ErrPassthrough = ErrorCodePassthrough
|
||||||
|
// Deprecated: ErrIterOver is a deprecated alias of ErrorCodeIterOver.
|
||||||
|
ErrIterOver = ErrorCodeIterOver
|
||||||
|
// Deprecated: ErrApplyFail is a deprecated alias of ErrorCodeApplyFail.
|
||||||
|
ErrApplyFail = ErrorCodeApplyFail
|
||||||
)
|
)
|
||||||
|
|
||||||
// index.go
|
// index.go
|
||||||
|
|
||||||
// IndexAddOpts is a deprecated alias of IndexAddOption.
|
// Deprecated: IndexAddOpts is a deprecated alias of IndexAddOption.
|
||||||
type IndexAddOpts = IndexAddOption
|
type IndexAddOpts = IndexAddOption
|
||||||
|
|
||||||
// IndexStageOpts is a deprecated alias of IndexStageState.
|
// Deprecated: IndexStageOpts is a deprecated alias of IndexStageState.
|
||||||
type IndexStageOpts = IndexStageState
|
type IndexStageOpts = IndexStageState
|
||||||
|
|
||||||
// submodule.go
|
// submodule.go
|
||||||
|
|
||||||
// SubmoduleCbk is a deprecated alias of SubmoduleCallback.
|
// Deprecated: SubmoduleCbk is a deprecated alias of SubmoduleCallback.
|
||||||
type SubmoduleCbk = SubmoduleCallback
|
type SubmoduleCbk = SubmoduleCallback
|
||||||
|
|
||||||
// SubmoduleVisitor is not used.
|
// Deprecated: SubmoduleVisitor is not used.
|
||||||
func SubmoduleVisitor(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer) C.int {
|
func SubmoduleVisitor(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer) C.int {
|
||||||
sub := &Submodule{(*C.git_submodule)(csub), nil}
|
sub := &Submodule{(*C.git_submodule)(csub), nil}
|
||||||
|
|
||||||
|
@ -179,7 +235,7 @@ func SubmoduleVisitor(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer)
|
||||||
|
|
||||||
// tree.go
|
// tree.go
|
||||||
|
|
||||||
// CallbackGitTreeWalk is not used.
|
// Deprecated: CallbackGitTreeWalk is not used.
|
||||||
func CallbackGitTreeWalk(_root *C.char, entry *C.git_tree_entry, ptr unsafe.Pointer) C.int {
|
func CallbackGitTreeWalk(_root *C.char, entry *C.git_tree_entry, ptr unsafe.Pointer) C.int {
|
||||||
root := C.GoString(_root)
|
root := C.GoString(_root)
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,9 @@ const (
|
||||||
|
|
||||||
// RemoteCreateOptions contains options for creating a remote
|
// RemoteCreateOptions contains options for creating a remote
|
||||||
type RemoteCreateOptions struct {
|
type RemoteCreateOptions struct {
|
||||||
Name string
|
Name string
|
||||||
FetchSpec string
|
FetchSpec string
|
||||||
Flags RemoteCreateOptionsFlag
|
Flags RemoteCreateOptionsFlag
|
||||||
}
|
}
|
||||||
|
|
||||||
type TransferProgress struct {
|
type TransferProgress struct {
|
||||||
|
|
Loading…
Reference in New Issue