{"modulePath":"github.com/indaco/sley","version":"v0.13.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gitlog\n\n## Types\n\n```go\ntype ExecCommandFunc func(name string, arg ...string) *exec.Cmd\n```\nExecCommandFunc is the function signature matching exec.Command.\n\n```go\ntype GetCommitsFn func(since, until string) ([]string, error)\n```\nGetCommitsFn is the function type for GetCommits (used for dependency injection).\n\n```go\nfunc DefaultGetCommitsFn() GetCommitsFn\n```\nDefaultGetCommitsFn returns a GetCommitsFn backed by a real GitLog instance.\n\n```go\ntype GitLog struct {\n\tExecCommandFn ExecCommandFunc\n\t// TagPrefix scopes tag resolution to tags matching this prefix.\n\t// Empty means use the latest tag globally.\n\tTagPrefix string\n\t// ModulePath scopes git log to commits touching this directory.\n\t// Empty means no path filtering (all commits).\n\tModulePath string\n}\n```\nGitLog retrieves commit messages from a git repository.\n\n```go\nfunc NewGitLog() *GitLog\n```\nNewGitLog creates a GitLog with the real exec.Command implementation.\n\n```go\nfunc NewGitLogWithScope(tagPrefix, modulePath string) *GitLog\n```\nNewGitLogWithScope creates a GitLog scoped to a specific module. tagPrefix filters tag resolution (e.g. \"\\\u003cmodule-name\u003e/v\") and modulePath scopes git log to commits touching that directory (e.g. \"\\\u003cmodule-name\u003e\").\n\n```go\nfunc (g *GitLog) GetCommits(since string, until string) ([]string, error)\n```\nGetCommits returns commit messages between since and until refs.\n\n","path":"github.com/indaco/sley/internal/plugins/commitparser/gitlog","name":"gitlog","synopsis":"","isRedistributable":true}
