aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-24 10:50:41 +0000
committerGravatar Runxi Yu2026-05-24 10:50:41 +0000
commit3b8419a9202c7ae6d0294da11e475caf1543784d (patch)
tree2a0758559e7f14c4b6692efeaa6a6b3597230b18
parentinternal/testgit: Init (diff)
signatureNo signature
internal/testgit: Fix documentation wrappin
-rw-r--r--internal/testgit/object.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/testgit/object.go b/internal/testgit/object.go
index 0ea4d4d8..566c8b82 100644
--- a/internal/testgit/object.go
+++ b/internal/testgit/object.go
@@ -8,7 +8,8 @@ import (
"codeberg.org/lindenii/furgit/object/typ"
)
-// HashObject hashes and writes an object and returns its object ID.
+// HashObject hashes and writes an object,
+// and returns its object ID.
func (repo *Repo) HashObject(tb testing.TB, ty typ.Type, body io.Reader) id.ObjectID {
tb.Helper()
cmd := repo.Command(tb, "git", "hash-object", "-t", ty.Name(), "-w", "--stdin", "--literally")