git

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAnnotatedTag

func CreateAnnotatedTag(repoPath, tagName, message string) error

CreateAnnotatedTag creates an annotated git tag at HEAD

func CreateAnnotatedTags

func CreateAnnotatedTags(repoPath string, tags map[string]string) error

CreateAnnotatedTags creates multiple annotated git tags at HEAD Returns error on first failure (no tags created if any fail)

func CreateCommit

func CreateCommit(repoPath, message string) error

CreateCommit creates a git commit with the given message Returns error if repository is invalid or no changes are staged

func CreateLightweightTag

func CreateLightweightTag(repoPath, tagName string) error

CreateLightweightTag creates a lightweight git tag at HEAD

func CreateLightweightTags

func CreateLightweightTags(repoPath string, tagNames []string) error

CreateLightweightTags creates multiple lightweight git tags at HEAD Returns error on first failure (no tags created if any fail)

func FindRepositoryRoot

func FindRepositoryRoot(path string) (string, error)

FindRepositoryRoot finds the root directory of the git repository containing the given path

func IsRepository

func IsRepository(path string) (bool, error)

IsRepository checks if the given path is within a git repository

func StageFiles

func StageFiles(repoPath string, filePaths []string) error

StageFiles stages multiple files in the git repository

func VerifyTagExists

func VerifyTagExists(repoPath, tagName string) (bool, error)

VerifyTagExists checks if a tag exists in the local repository

func VerifyTagPushedToRemote

func VerifyTagPushedToRemote(repoPath, remoteName, tagName string) (bool, error)

VerifyTagPushedToRemote checks if a tag has been pushed to remote

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL