Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalRepo ¶
func GetLocalRepo() (*git.Repository, error)
func GetRepoConfig ¶
func GetRepoConfig(repo *git.Repository) (*config.Config, error)
Types ¶
type DefaultGitRepo ¶ added in v1.192.0
type DefaultGitRepo struct{}
DefaultGitRepo is the default implementation of GitRepoInterface.
func (*DefaultGitRepo) GetLocalRepo ¶
func (d *DefaultGitRepo) GetLocalRepo() (*RepoInfo, error)
GetLocalRepo returns information about the local git repository.
func (*DefaultGitRepo) GetRepoInfo ¶ added in v1.192.0
func (d *DefaultGitRepo) GetRepoInfo(repo *git.Repository) (RepoInfo, error)
GetRepoInfo returns the repository information for the given git.Repository.
type GitRepoInterface ¶ added in v1.192.0
type GitRepoInterface interface {
GetLocalRepo() (*RepoInfo, error)
GetRepoInfo(repo *git.Repository) (RepoInfo, error)
}
GitRepoInterface defines the interface for git repository operations.
Click to show internal directories.
Click to hide internal directories.