From b2a2a279d96890c9578370ec4db50c1da31f18d7 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Tue, 25 Mar 2014 00:12:32 +0100 Subject: Add a settings package This lets us modify the libgit2-wide options/settings. --- git.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git.go') diff --git a/git.go b/git.go index b20f993..8159244 100644 --- a/git.go +++ b/git.go @@ -149,6 +149,10 @@ func MakeGitError(errorCode C.int) error { return &GitError{C.GoString(err.message), int(err.klass), int(errorCode)} } +func MakeGitError2(err int) error { + return MakeGitError(C.int(err)) +} + func cbool(b bool) C.int { if b { return C.int(1) -- cgit v1.2.3