Documentation
¶
Overview ¶
Package execgit provides a git client adapter using exec.Command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecGitClient ¶
type ExecGitClient struct{}
ExecGitClient implements ports.GitClient using exec.Command.
func (*ExecGitClient) GetHead ¶
func (g *ExecGitClient) GetHead(repoPath string) string
GetHead returns the current HEAD commit hash for the repository. Returns empty string if not a git repo or on error.
func (*ExecGitClient) IsRepo ¶
func (g *ExecGitClient) IsRepo(path string) bool
IsRepo checks if the given path is a git repository.
Click to show internal directories.
Click to hide internal directories.