Documentation
¶
Index ¶
Constants ¶
View Source
const (
ShortHashLen = 7
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribeObject ¶
func (*DescribeObject) DokcerTag ¶
func (desc *DescribeObject) DokcerTag() string
docker tag cann't contain '+'
func (*DescribeObject) SemanticVersion ¶
func (desc *DescribeObject) SemanticVersion() string
This translates the "git describe" to an actual semver.org compatible semantic version that looks something like this:
v1.1.0-alpha.0.6+84c76d1142ea4d
type Repository ¶
type Repository struct {
*git.Repository
// contains filtered or unexported fields
}
func Open ¶
func Open(dir string) (*Repository, error)
func (*Repository) Describe ¶
func (r *Repository) Describe(ref *plumbing.Reference) (*DescribeObject, error)
Describe the reference as 'git describe --tags' will do
func (*Repository) TreeState ¶
func (r *Repository) TreeState() (TreeState, error)
Click to show internal directories.
Click to hide internal directories.