summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Simms <[email protected]>2020-02-27 23:47:26 -0500
committerJonathan Simms <[email protected]>2020-02-27 23:50:57 -0500
commit0505eef78da720e7d528d1bb5139296270b6f746 (patch)
treebf86166478f00d558bc6e7ebaf88e3b8162375d4
parent93c4c5b30a73a587efd2f5bc1f33d0ef8cec6950 (diff)
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.
-rw-r--r--git.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/git.go b/git.go
index 968d404..0459dde 100644
--- a/git.go
+++ b/git.go
@@ -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