Documentation
¶
Index ¶
- func Git(args ...string) (string, error)
- func GitBranch() (string, error)
- func GitDir() (string, error)
- func GitHubMilestoneOpen(repo, milestone string) (bool, error)
- func GitInDir(dir string, args ...string) (string, error)
- func GitLsRemote(remote, ref string, flags ...string) (string, error)
- func GitLsRemoteHeads(remote, branch string) (string, error)
- func GitLsRemoteTags(remote, tag string) (string, error)
- func GitRefExistsInRemote(lsRemoteOutput, ref string) bool
- func GitShowFile(ref, path string) (string, error)
- func GitVersion() (string, error)
- func MakeInDir(dir string, targets string, env ...string) (string, error)
- func Run(name string, args, env []string) (string, error)
- func RunInDir(dir, name string, args, env []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitHubMilestoneOpen ¶
GitHubMilestoneOpen reports whether a GitHub milestone with the given title exists and is open in the specified repo. The repo must be in "owner/name" format (e.g., "tigera/operator").
func GitLsRemote ¶
GitLsRemote runs git ls-remote with the provided arguments.
func GitLsRemoteHeads ¶
GitLsRemoteHeads runs git ls-remote --heads for a branch.
func GitLsRemoteTags ¶
GitLsRemoteTags runs git ls-remote --tags for a tag.
func GitRefExistsInRemote ¶
GitRefExistsInRemote checks if a ref exists in git ls-remote output.
func GitShowFile ¶
GitShowFile reads a file from a specific git ref.
func GitVersion ¶
GitVersion returns the current git version using describe with long format and dirty flag.
func MakeInDir ¶
MakeInDir runs make with the provided targets and environment variables in the specified directory.
Types ¶
This section is empty.