tag

package
v0.0.87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestVersionTag added in v0.0.87

func GetLatestVersionTag(dir string, versionPrefix string) (string, error)

GetLatestVersionTag returns the latest version tag in the directory that has versionPrefix as prefix The basic name (part after stripping versionPrefix) should not contain "/" If versionPrefix is "", then the returned tag should not be nested (no "/" in it)

func GetVersionTagAtHEAD

func GetVersionTagAtHEAD(targetDir, tagPrefix string) (string, error)

GetVersionTagAtHEAD checks if there's a version tag at HEAD in the target directory tagPrefix is an optional prefix for the tag (e.g., "path/to/submodule/" for nested modules) If tagPrefix is empty, it will match tags like "v0.0.87" If tagPrefix is provided, it will match tags like "path/to/submodule/v0.0.87"

func ListTagsAtHEAD

func ListTagsAtHEAD(targetDir string) ([]string, error)

ListTagsAtHEAD returns all tags pointing at HEAD in the target directory

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL