Documentation ¶
Index ¶
- Variables
- func DirtyHeadHash(ctx context.Context, repoPath string) (string, error)
- func HeadHash(ctx context.Context, repoPath string) (string, error)
- func HeadTags(ctx context.Context, repoPath string) ([]string, error)
- func IsStatusClean(ctx context.Context, _ types.DepsFunc) error
- func VersionFromTag(ctx context.Context, repoPath string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]types.Command{ "git/isclean": { Description: "Verifies that there are no uncommitted changes", Fn: IsStatusClean, }, }
Commands is a set of commands useful for any environment.
Functions ¶
func DirtyHeadHash ¶ added in v2.3.0
DirtyHeadHash returns hash of the latest commit in the repository, adding "-dirty" suffix if there are uncommitted changes.
func IsStatusClean ¶
IsStatusClean checks that there are no uncommitted files in the repo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.