Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Common ¶ added in v0.15.2
Common returns the path to the common .git directory shared by every worktree of the repository. In the main working tree it equals Get; inside a linked worktree Get returns .git/worktrees/<name> while Common returns the main .git. Files that must be shared across worktrees (the git-zf store) belong here.
func Get ¶
Get returns the path to the .git directory for the current working tree. It resolves gitfiles, submodules, and linked worktrees via git rev-parse, without importing go-git. Inside a linked worktree this is the per-worktree dir (.git/worktrees/<name>), which is where MERGE_HEAD and friends live.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.