summaryrefslogtreecommitdiff
path: root/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree.go')
-rw-r--r--tree.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tree.go b/tree.go
index f5cbd78..ee14ec5 100644
--- a/tree.go
+++ b/tree.go
@@ -27,6 +27,10 @@ type Tree struct {
cast_ptr *C.git_tree
}
+func (t *Tree) AsObject() *Object {
+ return &t.Object
+}
+
type TreeEntry struct {
Name string
Id *Oid