diff options
| author | 2026-03-10 14:19:53 +0800 | |
|---|---|---|
| committer | 2026-03-10 14:19:53 +0800 | |
| commit | 85f1212724e037e6934203f04a3f6231ac609503 (patch) | |
| tree | 8d75a79541422eec0019125b3e9d281aa1613f1f /object/header/encode.go | |
| parent | packfile: Rename package to packfile (diff) | |
| signature | No signature | |
object/header: Rename from objectheader
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..e0393af6 --- /dev/null +++ b/object/header/encode.go @@ -0,0 +1,8 @@ +package header + +import "codeberg.org/lindenii/furgit/objecttype" + +// Encode returns a canonical loose-object header ("type size\\x00"). +func Encode(ty objecttype.Type, size int64) ([]byte, bool) { + return Append(nil, ty, size) +} |
