mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-23 03:45:47 -05:00
chore: Remove IsTagExist
- Introduced in1ebb35b988
and removed in2af67f6044
.
This commit is contained in:
parent
6fd9c065dc
commit
d2701877c0
2 changed files with 0 additions and 7 deletions
|
@ -104,7 +104,6 @@ code.gitea.io/gitea/modules/git
|
|||
CommitChangesWithArgs
|
||||
SetUpdateHook
|
||||
openRepositoryWithDefaultContext
|
||||
IsTagExist
|
||||
ToEntryMode
|
||||
|
||||
code.gitea.io/gitea/modules/gitgraph
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
package git
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
|
@ -20,11 +19,6 @@ import (
|
|||
// TagPrefix tags prefix path on the repository
|
||||
const TagPrefix = "refs/tags/"
|
||||
|
||||
// IsTagExist returns true if given tag exists in the repository.
|
||||
func IsTagExist(ctx context.Context, repoPath, name string) bool {
|
||||
return IsReferenceExist(ctx, repoPath, TagPrefix+name)
|
||||
}
|
||||
|
||||
// CreateTag create one tag in the repository
|
||||
func (repo *Repository) CreateTag(name, revision string) error {
|
||||
_, _, err := NewCommand(repo.Ctx, "tag").AddDashesAndList(name, revision).RunStdString(&RunOpts{Dir: repo.Path})
|
||||
|
|
Loading…
Add table
Reference in a new issue