Documentation ¶
Overview ¶
Package git provides VCS utility functions to interact with Git repositories.
See https://git-scm.com for more details about Git.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git represents a Git repository.
See https://git-scm.com for more details.
func (*Git) DeriveVersion ¶
DeriveVersion derives the repository version based on Git metadata.
References
(1) https://git-scm.com/docs/git-tag (2) https://git-scm.com/book/en/v2/Git-Internals-Git-Objects (3) https://git-scm.com/book/en/v2/Git-Internals-Git-References
type Option ¶
type Option func(*Options)
Option is a repository option.
func WithDefaultVersion ¶
WithDefaultVersion sets the default version.
Click to show internal directories.
Click to hide internal directories.