{"modulePath":"github.com/CrisisTextLine/modular/cmd/modcli","version":"v1.0.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Types\n\n```go\ntype GitHelper struct {\n\tRepoPath string\n}\n```\nGitHelper provides functionality to work with git repositories for contract extraction\n\n```go\nfunc NewGitHelper(repoPath string) *GitHelper\n```\nNewGitHelper creates a new GitHelper for the given repository path\n\n```go\nfunc (g *GitHelper) CompareRefs(oldRef, newRef, packagePath string, extractor *contract.Extractor) (*contract.ContractDiff, error)\n```\nCompareRefs extracts contracts from two git references and compares them\n\n```go\nfunc (g *GitHelper) ExtractContractFromRef(ref, packagePath string, extractor *contract.Extractor) (*contract.Contract, error)\n```\nExtractContractFromRef extracts API contract from a specific git reference\n\n```go\nfunc (g *GitHelper) FindLatestVersionTag(pattern string) (string, error)\n```\nFindLatestVersionTag finds the latest version tag matching the pattern\n\n```go\nfunc (g *GitHelper) GetAvailableRefs() ([]string, error)\n```\nGetAvailableRefs returns a list of available refs (branches and tags)\n\n```go\nfunc (g *GitHelper) GetCurrentRef() (string, error)\n```\nGetCurrentRef gets the current git reference (branch or tag)\n\n```go\nfunc (g *GitHelper) IsGitRepository() bool\n```\nIsGitRepository checks if the given path is inside a git repository\n\n```go\nfunc (g *GitHelper) ListVersionTags(pattern string) ([]TagInfo, error)\n```\nListVersionTags lists all version tags in the repository, sorted by version\n\n```go\ntype TagInfo struct {\n\tName      string\n\tCommit    string\n\tDate      time.Time\n\tMessage   string\n\tIsVersion bool\n}\n```\nTagInfo represents information about a git tag\n\n","path":"github.com/CrisisTextLine/modular/cmd/modcli/internal/git","name":"git","synopsis":"","isRedistributable":true}
