libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 314 forks source link

Generate stringer files automatically (#841) #869

Closed lhchavez closed 2 years ago

lhchavez commented 2 years ago

Added stringer annotations to git.go for ErrorClass and ErrorCode. Added generate rule for Makefile to generate string representations for these types (first building cgo files in _obj dir to get C constants). Finally, updated ci actions workflow to check that generated files are up to date.

Fixes: #543 (cherry picked from commit 5e35338d58b589939b599c98ec9e6b44f94de20a)