commit 674c2aae499be6288afee320c7c66b6d11a8623b
parent 95fe3214b23dc32bfca3570ab9af414fc00238eb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 20 Jul 2026 02:44:55 -0400
Gitignore: match the generated export/public dirs when they're worktree symlinks
The preprocessed-transcript and archive outputs were already listed, but with a
trailing slash — a directory-only pattern. In a `pnpm wt` worktree those paths
are SYMLINKS to the main checkout's dirs (the shared-data setup in WORKTREES.md),
and git sees a symlink as a file, so the patterns never matched and every
worktree showed subs/ summaries/ transcripts/ stats/ archives/ as untracked.
Dropping the trailing slash matches both a real directory (main checkout) and a
symlink (worktrees). No tracked files are affected — only static assets are
committed under export/public.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat:
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -50,10 +50,13 @@ yarn-error.log*
/export/public/transcripts.tar.xz
# preprocessed transcript data (regenerate with `pnpm build:index`)
-/export/public/subs/
-/export/public/summaries/
-/export/public/transcripts/
-/export/public/stats/
+# NOTE: no trailing slash — in a `pnpm wt` worktree these are SYMLINKS to the main
+# checkout's dirs (see WORKTREES.md), and a directory-only pattern wouldn't match
+# them, leaving generated data showing up as untracked in every worktree.
+/export/public/subs
+/export/public/summaries
+/export/public/transcripts
+/export/public/stats
/export/public/chart-templates.json
/export/public/search-aliases.json
/export/public/duplicates.json
@@ -66,7 +69,8 @@ yarn-error.log*
/export/public/robots.txt
/export/public/sitemap.xml
# per-site bulk-download archive zips + manifest (regenerate with `pnpm build`)
-/export/public/archives/
+# (no trailing slash — may be a worktree symlink, as above)
+/export/public/archives
# oversize archives staged for the deploy-time R2 upload
/export/.r2-staging/
/export/.export-index/