aboutsummaryrefslogtreecommitdiff
path: root/internal/objectheader/encode.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 00:42:00 +0800
committerGravatar Runxi Yu2026-02-21 00:42:00 +0800
commita03e6e14a1e807136b05f28072f37dcf8c030f6b (patch)
treec9e4069fbd959d05f684895a8bbd0ccbc311ea77 /internal/objectheader/encode.go
parenttestgit: Use objectid's SupportedAlgorithms (diff)
signatureNo signature
objectheader: Move out of internal
Diffstat (limited to 'internal/objectheader/encode.go')
-rw-r--r--internal/objectheader/encode.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/objectheader/encode.go b/internal/objectheader/encode.go
deleted file mode 100644
index 1cca968b..00000000
--- a/internal/objectheader/encode.go
+++ /dev/null
@@ -1,8 +0,0 @@
-package objectheader
-
-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)
-}