Documentation
¶
Overview ¶
Package igit provides interoperability with Git.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CI ¶ added in v0.2.0
type CI struct {
// BaselineStatus is used to check against when running CI checks, so that each CI task can
// see if it introduced changes.
BaselineStatus Status
// CurrentStatus is the latest-available Git status, which may differ from the baseline.
CurrentStatus Status
}
CI defines metadata & behavior for CI tasks.
func (*CI) StatusHasChanged ¶ added in v0.2.0
StatusHasChanged informs the caller of whether or not the Status now differs from the baseline.
type Git ¶
type Git struct {
// The root directory of the repository on the host.
Root string
// The current branch name.
Branch string
// The latest tag available in the repo.
LatestTag string
// The latest commit on the current branch.
LatestCommit string
// Whether or not the working directory has uncommitted changes.
IsDirty bool
}
Git holds metadata about the current state of the Git repository.
func (*Git) SanitizedBranch ¶ added in v0.2.0
SanitizedBranch returns the current branch name, sanitized for various systems that allow for a smaller charset (e.g. container image tags).
Click to show internal directories.
Click to hide internal directories.