Documentation
¶
Index ¶
- func ConfigureMergeDriver(repoRoot string) error
- func DetectOwner(run CommandRunner) (string, error)
- func DetectProject(run CommandRunner) (string, error)
- func EnsureGitAttributes(repoRoot string) error
- func NormalizeID(project, input string) (string, error)
- func ParseProjectFromRemote(remote string) (string, error)
- type CommandRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureMergeDriver ¶
ConfigureMergeDriver sets the local git merge driver configuration.
func DetectOwner ¶
func DetectOwner(run CommandRunner) (string, error)
DetectOwner resolves owner via TICK_OWNER or git config user.email.
func DetectProject ¶
func DetectProject(run CommandRunner) (string, error)
DetectProject resolves the current git remote project via origin.
func EnsureGitAttributes ¶
EnsureGitAttributes adds the tick merge driver line to .gitattributes if missing.
func NormalizeID ¶
NormalizeID accepts short or global IDs and returns the short ID.
func ParseProjectFromRemote ¶
ParseProjectFromRemote extracts owner/repo from a git remote URL.
Types ¶
Click to show internal directories.
Click to hide internal directories.