Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
RepoPath string // RepoPath is the path to the git repository's root. Git commands executed by this Client will be run at this path.
}
Client is a wrapper around the git CLI tool.
func (Client) CommitHash ¶
CommitHash returns a timestamp and commit hash for the HEAD commit of the given repository, formatted in the way expected for a go.mod file pseudo-version.
Click to show internal directories.
Click to hide internal directories.