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)
func OpenWorktreeAwareRepo ¶ added in v1.191.0
func OpenWorktreeAwareRepo(path string) (*git.Repository, error)
OpenWorktreeAwareRepo opens a Git repository at the given path, handling both regular repositories and worktrees correctly. It uses EnableDotGitCommonDir to properly support worktrees with access to the main repository's config, remotes, and references.