Skip to main content

Module worktree_ref

Module worktree_ref 

Source
Expand description

Per-worktree ref name parsing and storage location (Git parse_worktree_ref / files_ref_path).

Enums§

RefWorktreeType
How a ref name maps to on-disk storage across worktrees.

Functions§

is_linked_worktree_git_dir
True when git_dir is a linked worktree administrative directory.
is_per_worktree_ref
refs/worktree/*, refs/bisect/*, and refs/rewritten/* are per-worktree.
parse_worktree_ref
Parse maybe_worktree_ref like Git parse_worktree_ref.
ref_visible_from_worktree
Whether refname should appear in for-each-ref from a linked worktree.
resolve_ref_dwim
Resolve spec using Git ref_rev_parse_rules / expand_ref.
resolve_ref_storage
Git directory and on-disk ref path for refname from the current process’s linked checkout.