diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-03-25 00:12:32 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-03-25 09:27:05 +0100 |
| commit | b2a2a279d96890c9578370ec4db50c1da31f18d7 (patch) | |
| tree | 873283e84f593d698ae44bbe0ee52637f26de42e /git.go | |
| parent | 2811845a1287d949a74b8ed80a5791fd8875002a (diff) | |
Add a settings package
This lets us modify the libgit2-wide options/settings.
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
