From 11d8ea1378bca6cb364f15363b7e9e130d7b1c3d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 6 Jun 2026 21:21:06 +0000 Subject: Label fixes --- object/blob/parse.go | 2 +- object/id/object_id_ops.go | 4 +++- object/signature/signature.go | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'object') diff --git a/object/blob/parse.go b/object/blob/parse.go index b5522e6a..c013af96 100644 --- a/object/blob/parse.go +++ b/object/blob/parse.go @@ -2,7 +2,7 @@ package blob // Parse decodes a blob object body. // -// Labels: Deps-Owned, Life-Independent. +// Labels: Life-Independent. func Parse(body []byte) (*Blob, error) { return &Blob{Data: append([]byte(nil), body...)}, nil } diff --git a/object/id/object_id_ops.go b/object/id/object_id_ops.go index b97cb19a..a8c08f33 100644 --- a/object/id/object_id_ops.go +++ b/object/id/object_id_ops.go @@ -11,6 +11,8 @@ func (id ObjectID) ObjectFormat() ObjectFormat { } // Bytes returns a copy of the object ID bytes. +// +// Labels: Life-Independent. func (id ObjectID) Bytes() []byte { size := id.ObjectFormat().Size() @@ -21,7 +23,7 @@ func (id ObjectID) Bytes() []byte { // // Prefer [ObjectID.Bytes] except for when it is a performance bottleneck. // -// Labels: Mut-No. +// Labels: Life-Parent, Mut-No. func (id *ObjectID) RawBytes() []byte { size := id.ObjectFormat().Size() diff --git a/object/signature/signature.go b/object/signature/signature.go index f01c5e2e..e9ec56c0 100644 --- a/object/signature/signature.go +++ b/object/signature/signature.go @@ -1,6 +1,8 @@ package signature // Signature represents a Git signature (author/committer/tagger). +// +// Labels: MT-Unsafe. type Signature struct { Name []byte Email []byte -- cgit v1.3.1-10-gc9f91