summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-05-30 22:23:23 +0200
committerCarlos Martín Nieto <[email protected]>2015-05-30 22:23:23 +0200
commit35ff0de8559ed987ff82b025cc2bb5983f29e559 (patch)
tree62b2ffe5ef7c32f89a49bb722c1cce85b2a9656b /git.go
parent193deb7ae3cbc5d5a1f7f186aae6edb20bff950a (diff)
parente8531dd5c31fc87044e9061b18f37df9b05bd0ac (diff)
Merge pull request #196 from pks-t/pointer-indirection
[WIP/RFC] Pointer indirection
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 9496d2d..4f1a65e 100644
--- a/git.go
+++ b/git.go
@@ -93,7 +93,11 @@ var (
ErrInvalid = errors.New("Invalid state for operation")
)
+var pointerHandles *HandleList
+
func init() {
+ pointerHandles = NewHandleList()
+
C.git_libgit2_init()
// This is not something we should be doing, as we may be