Documentation
¶
Overview ¶
Package gitx answers the few git questions wtm asks about the current directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepoRoot ¶
RepoRoot returns the main repository root, even when called from inside a linked worktree.
`--show-toplevel` cannot be used: inside a worktree it returns the worktree itself, which is never the path a project is registered under, so every command run from a worktree would fail to find its own project. `--git-common-dir` always points at the main repository's git directory.
Types ¶
This section is empty.