shithub: furgit

ref: c9eefd50557a5436da84e0a38ee96c812d453336
dir: /object/object.go/

View raw version
// Package object parses and serializes objects such as blob, tree, commit, and
// tag.
package object

import "codeberg.org/lindenii/furgit/objecttype"

// Object is a Git object that can serialize itself.
type Object interface {
	ObjectType() objecttype.Type
	SerializeWithoutHeader() ([]byte, error)
	SerializeWithHeader() ([]byte, error)
}