enable parcel file watcher, expand parcel ignore patterns, replace fs watcher for git branches with parcel (#4805)

This commit is contained in:
Aiden Cline
2025-11-26 15:33:43 -08:00
committed by GitHub
parent 3ff0eb3065
commit 99d7ff47c4
5 changed files with 77 additions and 62 deletions

View File

@@ -12,6 +12,7 @@ export namespace Project {
.object({
id: z.string(),
worktree: z.string(),
vcsDir: z.string().optional(),
vcs: z.literal("git").optional(),
time: z.object({
created: z.number(),
@@ -80,9 +81,16 @@ export namespace Project {
.cwd(worktree)
.text()
.then((x) => x.trim())
const vcsDir = await $`git rev-parse --path-format=absolute --git-dir`
.quiet()
.nothrow()
.cwd(worktree)
.text()
.then((x) => x.trim())
const project: Info = {
id,
worktree,
vcsDir,
vcs: "git",
time: {
created: Date.now(),