Git - polish delete worktree picker (#284242)

This commit is contained in:
Ladislau Szomoru
2025-12-18 12:22:41 +00:00
committed by GitHub
parent e3fbfc124e
commit abd691b025
3 changed files with 62 additions and 44 deletions

View File

@@ -141,6 +141,9 @@ export function groupBy<T>(arr: T[], fn: (el: T) => string): { [key: string]: T[
}, Object.create(null));
}
export function coalesce<T>(array: ReadonlyArray<T | undefined>): T[] {
return array.filter((e): e is T => !!e);
}
export async function mkdirp(path: string, mode?: number): Promise<boolean> {
const mkdir = async () => {