summaryrefslogtreecommitdiff
path: root/odb.go
diff options
context:
space:
mode:
authorAidan Nulman <[email protected]>2013-12-18 17:25:54 -0500
committerAidan Nulman <[email protected]>2013-12-18 17:25:54 -0500
commitdfe6d1ab7efa8bb480616eb5f3962989b4ac3096 (patch)
tree22c9655e9a5d38f7daa3da66c81788a9016e7b04 /odb.go
parent66dfbbf5399182d4b307a236042a845ca7a1ed15 (diff)
Stop assuming ODB backend includes wrapping routine; wrap in git2go instead
Diffstat (limited to 'odb.go')
-rw-r--r--odb.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb.go b/odb.go
index eaa7872..acde696 100644
--- a/odb.go
+++ b/odb.go
@@ -17,6 +17,10 @@ type Odb struct {
ptr *C.git_odb
}
+type OdbBackend struct {
+ ptr *C.git_odb_backend
+}
+
func (v *Odb) Exists(oid *Oid) bool {
ret := C.git_odb_exists(v.ptr, oid.toC())
return ret != 0