aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-18 05:03:32 +0000
committerGravatar Runxi Yu2026-05-18 05:03:32 +0000
commitbf71cde5c1b596ae065e688b3cbb6f54d768893b (patch)
tree36c8376c8f1c8fc2337693901a6cba2f3c19fd38
parentREFACTOR: I don't need cmd in my refactor. (diff)
signatureNo signature
object/{header,signature}: Rename Append* to Append
-rw-r--r--object/header/append.go4
-rw-r--r--object/signature/append.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/object/header/append.go b/object/header/append.go
index fa9893c2..ede08315 100644
--- a/object/header/append.go
+++ b/object/header/append.go
@@ -7,8 +7,8 @@ import (
"codeberg.org/lindenii/furgit/object/typ"
)
-// AppendHeader appends a canonical loose-object header ("type size\x00") to dst.
-func AppendHeader(dst []byte, ty typ.Type, size uint64) []byte {
+// Append appends a canonical loose-object header ("type size\x00") to dst.
+func Append(dst []byte, ty typ.Type, size uint64) []byte {
tyName := ty.Name()
dst = slices.Grow(dst, len(tyName)+1+19+1)
diff --git a/object/signature/append.go b/object/signature/append.go
index fd84607e..38ed9a32 100644
--- a/object/signature/append.go
+++ b/object/signature/append.go
@@ -5,8 +5,8 @@ import (
"strconv"
)
-// AppendTo renders the signature in canonical Git format.
-func (signature Signature) AppendTo(dst []byte) []byte {
+// Append renders the signature in canonical Git format.
+func (signature Signature) Append(dst []byte) []byte {
dst = slices.Grow(dst, len(signature.Name)+len(signature.Email)+32)
dst = append(dst, signature.Name...)
dst = append(dst, ' ', '<')