pub async fn local_exclude(worktree: &Path, pattern: &str) -> Result<()>
Exclude a path from a worktree’s status without touching .gitignore.
.gitignore