pub fn worktree_gitignore_pattern(dir: &Path) -> Option<String>Expand description
Returns the gitignore pattern for the worktree dir, or None if it is external.
External paths (absolute or parent-relative) don’t need a gitignore entry.
For in-repo paths, returns Some("/<dir>/").