summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-04-04 00:22:42 -0700
committerJesse Ezell <[email protected]>2014-04-04 00:22:42 -0700
commit864c57f554821143b6298e3b927d362d996a32c2 (patch)
treef4f863d218f454a319cf14d925e058cc6a069eae /git.go
parent0b48ba2224ec41dfc10a379ce1b7bb86441cc432 (diff)
parent9cd1d129bcd567ef65137783a603f8d898d8d933 (diff)
merge latest, copy merge bytes to go array
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)