[PR #92] Add Storage interface for different implementation of git tags #98

Open
opened 2026-02-16 10:24:06 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/git/pull/92
Author: @lunny
Created: 11/21/2017
Status: 🔄 Open

Base: masterHead: lunny/get_tag


📝 Commits (2)

  • d88615b Add support for packed refs in GetTags() (#31)
  • 9cf5ff5 Add Storage interface for different implementation of git tags

📊 Changes

15 files changed (+218 additions, -26 deletions)

View changed files

refs.go (+73 -0)
📝 repo_tag.go (+1 -26)
repo_test.go (+33 -0)
storage.go (+87 -0)
testdata/test_loose_refs.git/refs/tags/v1.0.0 (+1 -0)
testdata/test_loose_refs.git/refs/tags/v1.2.1 (+1 -0)
testdata/test_loose_refs.git/refs/tags/v2.0.0 (+1 -0)
testdata/test_loose_refs.git/refs/tags/v3.0.0 (+1 -0)
testdata/test_loose_refs.git/refs/tags/v3.1.0 (+1 -0)
testdata/test_loose_refs.git/refs/tags/v3.10.1 (+1 -0)
testdata/test_mixed_refs.git/packed-refs (+6 -0)
testdata/test_mixed_refs.git/refs/tags/v3.0.0 (+1 -0)
testdata/test_mixed_refs.git/refs/tags/v3.1.0 (+1 -0)
testdata/test_mixed_refs.git/refs/tags/v3.10.1 (+1 -0)
testdata/test_packed_refs.git/packed-refs (+9 -0)

📄 Description

Also cherry-picked from github.com/gogits/git 16c37513c71a92abb31ffd8d8bd2308cb1016162.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/git/pull/92 **Author:** [@lunny](https://github.com/lunny) **Created:** 11/21/2017 **Status:** 🔄 Open **Base:** `master` ← **Head:** `lunny/get_tag` --- ### 📝 Commits (2) - [`d88615b`](https://github.com/go-gitea/git/commit/d88615b4f59dc0233591b081f74c1953d761aee0) Add support for packed refs in GetTags() (#31) - [`9cf5ff5`](https://github.com/go-gitea/git/commit/9cf5ff58ca77db791cf413955164f80b158734de) Add Storage interface for different implementation of git tags ### 📊 Changes **15 files changed** (+218 additions, -26 deletions) <details> <summary>View changed files</summary> ➕ `refs.go` (+73 -0) 📝 `repo_tag.go` (+1 -26) ➕ `repo_test.go` (+33 -0) ➕ `storage.go` (+87 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v1.0.0` (+1 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v1.2.1` (+1 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v2.0.0` (+1 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v3.0.0` (+1 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v3.1.0` (+1 -0) ➕ `testdata/test_loose_refs.git/refs/tags/v3.10.1` (+1 -0) ➕ `testdata/test_mixed_refs.git/packed-refs` (+6 -0) ➕ `testdata/test_mixed_refs.git/refs/tags/v3.0.0` (+1 -0) ➕ `testdata/test_mixed_refs.git/refs/tags/v3.1.0` (+1 -0) ➕ `testdata/test_mixed_refs.git/refs/tags/v3.10.1` (+1 -0) ➕ `testdata/test_packed_refs.git/packed-refs` (+9 -0) </details> ### 📄 Description Also cherry-picked from github.com/gogits/git 16c37513c71a92abb31ffd8d8bd2308cb1016162. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:24:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#98