diff options
| author | 2026-03-25 14:21:09 +0000 | |
|---|---|---|
| committer | 2026-03-25 14:21:09 +0000 | |
| commit | 7d9c128ce04875f970c78673500c0a492000398f (patch) | |
| tree | 4e65166a451f9970c5264fad72e9a8f9634eefb5 /object/header/encode.go | |
| parent | research: Dynamic packfile log (diff) | |
| signature | No signature | |
*: objecttype, objectheader -> object/type, object/header
Diffstat (limited to 'object/header/encode.go')
| -rw-r--r-- | object/header/encode.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/object/header/encode.go b/object/header/encode.go new file mode 100644 index 00000000..a03c1f05 --- /dev/null +++ b/object/header/encode.go @@ -0,0 +1,8 @@ +package objectheader + +import objecttype "codeberg.org/lindenii/furgit/object/type" + +// Encode returns a canonical loose-object header ("type size\\x00"). +func Encode(ty objecttype.Type, size int64) ([]byte, bool) { + return Append(nil, ty, size) +} |
