From 6d3a1ad712d2f0affe06b75b1f2fe05e84e2f8ab Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 16:36:23 +0000 Subject: object/{blob,commit,tag}: Update docs --- object/blob/blob.go | 7 +++++-- object/commit/commit.go | 4 +++- object/tag/tag.go | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'object') diff --git a/object/blob/blob.go b/object/blob/blob.go index 4ec98fb0..71c1f6f8 100644 --- a/object/blob/blob.go +++ b/object/blob/blob.go @@ -3,9 +3,12 @@ package blob // Blob represents a Git blob object. // -// This Blob object is fully materialized in memory. -// Consider using objectstore/Store.ReadReaderContent, +// Blob is fully materialized in memory. +// +// Consider using objectstore.ReadingStore.ReadReaderContent, // or appropriate streaming write APIs. +// +// Labels: MT-Unsafe. type Blob struct { Data []byte } diff --git a/object/commit/commit.go b/object/commit/commit.go index e2e087f5..df0e0aca 100644 --- a/object/commit/commit.go +++ b/object/commit/commit.go @@ -6,7 +6,9 @@ import ( objectsignature "codeberg.org/lindenii/furgit/object/signature" ) -// Commit represents a Git commit object. +// Commit represents a fully materialized Git commit object. +// +// Labels: MT-Unsafe. type Commit struct { Tree objectid.ObjectID Parents []objectid.ObjectID diff --git a/object/tag/tag.go b/object/tag/tag.go index 4301557e..60c3a67a 100644 --- a/object/tag/tag.go +++ b/object/tag/tag.go @@ -7,7 +7,9 @@ import ( objecttype "codeberg.org/lindenii/furgit/object/type" ) -// Tag represents a Git annotated tag object. +// Tag represents a fully materialized Git annotated tag object. +// +// Labels: MT-Unsafe. type Tag struct { Target objectid.ObjectID TargetType objecttype.Type -- cgit v1.3.1-10-gc9f91