Show files inside untracked git folders

This commit is contained in:
Federico Jaramillo Martinez
2026-05-08 16:58:28 +02:00
parent d602e4857a
commit 8dfd44eb15
+1 -1
View File
@@ -6,7 +6,7 @@ import { normalizeRelativePath } from "../workspaces/pathSafety.js";
const MAX_OUTPUT = 2 * 1024 * 1024; const MAX_OUTPUT = 2 * 1024 * 1024;
export async function gitStatus(cwd: string): Promise<GitStatusResponse> { export async function gitStatus(cwd: string): Promise<GitStatusResponse> {
const result = await runGit(cwd, ["status", "--porcelain=v2", "--branch", "-z"]); const result = await runGit(cwd, ["status", "--porcelain=v2", "--branch", "--untracked-files=all", "-z"]);
if (result.code !== 0) return { isGitRepo: false, hash: hash(result.stdout + result.stderr), files: [] }; if (result.code !== 0) return { isGitRepo: false, hash: hash(result.stdout + result.stderr), files: [] };
return parseStatus(result.stdout); return parseStatus(result.stdout);
} }