Skip to main content

Module git_worktree

Module git_worktree 

Source
Expand description

Linked git worktrees, read from git’s own files without running git.

Functions§

main_worktree_root
The main checkout of the linked git worktree at root, read from git’s own files without running git: <root>/.git is a file naming the worktree’s git dir, whose gitdir points back at that file and whose commondir names the repository’s .git directory of the main checkout. None for a main checkout, a bare repository, or files that do not agree with each other.