Documentation
¶
Index ¶
- func CreateAnnotatedTag(repoPath, tagName, message string) error
- func CreateAnnotatedTags(repoPath string, tags map[string]string) error
- func CreateCommit(repoPath, message string) error
- func CreateLightweightTag(repoPath, tagName string) error
- func CreateLightweightTags(repoPath string, tagNames []string) error
- func FindRepositoryRoot(path string) (string, error)
- func IsRepository(path string) (bool, error)
- func StageFiles(repoPath string, filePaths []string) error
- func VerifyTagExists(repoPath, tagName string) (bool, error)
- func VerifyTagPushedToRemote(repoPath, remoteName, tagName string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAnnotatedTag ¶
CreateAnnotatedTag creates an annotated git tag at HEAD
func CreateAnnotatedTags ¶
CreateAnnotatedTags creates multiple annotated git tags at HEAD Returns error on first failure (no tags created if any fail)
func CreateCommit ¶
CreateCommit creates a git commit with the given message Returns error if repository is invalid or no changes are staged
func CreateLightweightTag ¶
CreateLightweightTag creates a lightweight git tag at HEAD
func CreateLightweightTags ¶
CreateLightweightTags creates multiple lightweight git tags at HEAD Returns error on first failure (no tags created if any fail)
func FindRepositoryRoot ¶
FindRepositoryRoot finds the root directory of the git repository containing the given path
func IsRepository ¶
IsRepository checks if the given path is within a git repository
func StageFiles ¶
StageFiles stages multiple files in the git repository
func VerifyTagExists ¶
VerifyTagExists checks if a tag exists in the local repository
func VerifyTagPushedToRemote ¶
VerifyTagPushedToRemote checks if a tag has been pushed to remote
Types ¶
This section is empty.