Resolves issue #541 - typo in error code 'ErrAmbigious'

I've added an additional constant with the correct spelling. I did this
rather than removing the existing constant to avoid breaking existing
code with the misspelled name.
This commit is contained in:
Jonathan Simms 2020-02-27 23:47:26 -05:00
parent 93c4c5b30a
commit 0505eef78d
1 changed files with 2 additions and 0 deletions

2
git.go
View File

@ -61,6 +61,8 @@ const (
// Object exists preventing operation
ErrExists ErrorCode = C.GIT_EEXISTS
// More than one object matches
ErrAmbiguous ErrorCode = C.GIT_EAMBIGUOUS
// (backwards compatibility misspelling)
ErrAmbigious ErrorCode = C.GIT_EAMBIGUOUS
// Output buffer too short to hold data
ErrBuffs ErrorCode = C.GIT_EBUFS