summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-04-04 00:30:05 -0700
committerJesse Ezell <[email protected]>2014-04-04 00:30:05 -0700
commitb00cb1a343b42130bd963ce5f6aff49527021259 (patch)
treef4d2ec2d5e4823ecce89092cd6748856c0318053 /git.go
parent4553b3ada6be15c47250bfb7948493b6cb88031b (diff)
parent9cd1d129bcd567ef65137783a603f8d898d8d933 (diff)
Merge remote-tracking branch 'libgit/master' into add-basic-diff-patch
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 9afa504..a8856e3 100644
--- a/git.go
+++ b/git.go
@@ -150,6 +150,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)