diff options
| author | 2026-01-29 22:05:30 +0100 | |
|---|---|---|
| committer | 2026-01-29 22:05:30 +0100 | |
| commit | 397eb22166afa8cd273dbd0decdcb2ac7f2d34df (patch) | |
| tree | cc95379243c40861ec1569df70519ca4bf493a0a /obj.go | |
| parent | packed: Make packWriter implement Write directly instead of wrapping (diff) | |
| signature | No signature | |
obj, loose: Add Object.Serialize() interface
Diffstat (limited to 'obj.go')
| -rw-r--r-- | obj.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
