Skip to main content

WORKTREE_FILES

Constant WORKTREE_FILES 

Source
pub const WORKTREE_FILES: [&str; 6];
Expand description

The git control files whose size and modification time say the repository has moved.

Relative to the per-worktree git directory (git rev-parse --git-dir): a linked worktree has its own HEAD, its own staging index and its own reflog, and watching the primary checkout’s instead would make every worktree’s server blind to its own commits.