summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-03-25 00:12:32 +0100
committerCarlos Martín Nieto <[email protected]>2014-03-25 09:27:05 +0100
commitb2a2a279d96890c9578370ec4db50c1da31f18d7 (patch)
tree873283e84f593d698ae44bbe0ee52637f26de42e /git.go
parent2811845a1287d949a74b8ed80a5791fd8875002a (diff)
Add a settings package
This lets us modify the libgit2-wide options/settings.
Diffstat (limited to 'git.go')
-rw-r--r--git.go4
1 files changed, 4 insertions, 0 deletions
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)