summaryrefslogtreecommitdiff
path: root/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'object.go')
-rw-r--r--object.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/object.go b/object.go
index f4f1b3e..5505e35 100644
--- a/object.go
+++ b/object.go
@@ -26,6 +26,11 @@ type Object struct {
repo *Repository
}
+// Objecter lets us accept any kind of Git object in functions.
+type Objecter interface {
+ AsObject() *Object
+}
+
func (t ObjectType) String() string {
switch t {
case ObjectAny: