Skip to main content

in_linked_worktree

Function in_linked_worktree 

Source
pub fn in_linked_worktree() -> bool
Expand description

Whether this command is running inside a linked worktree rather than the main checkout. Best effort: an unreadable root reads as the main worktree, which is where most runs happen.