aboutsummaryrefslogtreecommitdiff
path: root/obj.go
diff options
context:
space:
mode:
Diffstat (limited to 'obj.go')
-rw-r--r--obj.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/obj.go b/obj.go
index 41400985..f3ed8bfa 100644
--- a/obj.go
+++ b/obj.go
@@ -40,6 +40,9 @@ const (
type Object interface {
// ObjectType returns the object's type.
ObjectType() ObjectType
+ // Serialize renders the object into its raw byte representation,
+ // including the header (i.e., "type size\0").
+ Serialize() ([]byte, error)
}
// StoredObject describes a Git object with a known hash, such as