ref: 2536a35b68aa37d3a6d57305ae12b50b99c51f42
dir: /object/object.go/
// 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)
}