diff options
| author | 2026-03-31 02:13:09 +0000 | |
|---|---|---|
| committer | 2026-03-31 02:14:36 +0000 | |
| commit | 1999e34a96a4b000a53e5f7565e2a5b0d61a90f4 (patch) | |
| tree | f15919abb26d9640f324de6c4298ca577f8a51e1 /object | |
| parent | ref/store: Shape Batch a bit more like Transaction and eagerly validate what ... (diff) | |
| signature | No signature | |
object/fetch: Remove peel to tag functions v0.1.165
They were meaningless and confusing
Diffstat (limited to 'object')
| -rw-r--r-- | object/fetch/peel_to_tag.go | 14 | ||||
| -rw-r--r-- | object/fetch/peel_to_tag_id.go | 8 | ||||
| -rw-r--r-- | object/fetch/peel_to_tag_reader.go | 22 |
3 files changed, 0 insertions, 44 deletions
diff --git a/object/fetch/peel_to_tag.go b/object/fetch/peel_to_tag.go deleted file mode 100644 index bd75182b..00000000 --- a/object/fetch/peel_to_tag.go +++ /dev/null @@ -1,14 +0,0 @@ -package fetch - -import ( - objectid "codeberg.org/lindenii/furgit/object/id" - "codeberg.org/lindenii/furgit/object/stored" - "codeberg.org/lindenii/furgit/object/tag" -) - -// PeelToTag returns the tag at id without further peeling. -// -// Labels: Life-Parent. -func (r *Fetcher) PeelToTag(id objectid.ObjectID) (*stored.Stored[*tag.Tag], error) { - return r.ExactTag(id) -} diff --git a/object/fetch/peel_to_tag_id.go b/object/fetch/peel_to_tag_id.go deleted file mode 100644 index dc02c60a..00000000 --- a/object/fetch/peel_to_tag_id.go +++ /dev/null @@ -1,8 +0,0 @@ -package fetch - -import objectid "codeberg.org/lindenii/furgit/object/id" - -// PeelToTagID returns id unchanged. -func (r *Fetcher) PeelToTagID(id objectid.ObjectID) (objectid.ObjectID, error) { - return id, nil -} diff --git a/object/fetch/peel_to_tag_reader.go b/object/fetch/peel_to_tag_reader.go deleted file mode 100644 index 26de4e24..00000000 --- a/object/fetch/peel_to_tag_reader.go +++ /dev/null @@ -1,22 +0,0 @@ -package fetch - -import ( - "io" - - objectid "codeberg.org/lindenii/furgit/object/id" -) - -// PeelToTagReader returns a reader for the content of the tag at id, -// together with its content size in bytes. -// -// Usage of this method is unusual. -// -// Labels: Life-Parent, Close-Caller. -func (r *Fetcher) PeelToTagReader(id objectid.ObjectID) (io.ReadCloser, int64, error) { - tagID, err := r.PeelToTagID(id) - if err != nil { - return nil, 0, err - } - - return r.ExactTagReader(tagID) -} |
