SCM - hide worktrees created by Copilot Chat (#284462)

This commit is contained in:
Ladislau Szomoru
2025-12-19 15:02:54 +00:00
committed by GitHub
parent c843a8ad8c
commit b81bd1a1d1
10 changed files with 39 additions and 16 deletions

View File

@@ -866,3 +866,11 @@ export function getStashDescription(stash: Stash): string | undefined {
return descriptionSegments.join(' \u2022 ');
}
export function isCopilotWorktree(path: string): boolean {
const lastSepIndex = path.lastIndexOf(sep);
return lastSepIndex !== -1
? path.substring(lastSepIndex + 1).startsWith('copilot-worktree-')
: path.startsWith('copilot-worktree-');
}