Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

build-notepat: tighten gitDirty check to tracked-file changes only

\`git status --porcelain\` counts untracked files, so deploy.fish's
system/public/.commit-ref (written post git reset --hard) made every
lith build's version look "-dirty" even though the tree matched
origin/main exactly. Switching to \`git diff --quiet HEAD --\` which
only considers tracked modifications — no effect on dev builds with
actual uncommitted changes. Also gitignores .commit-ref for good
measure.

+9 -5
+2
.gitignore
··· 344 344 # + the root alias (notepat.com.amxd above) but don't bloat the repo 345 345 # with per-build binaries. 346 346 system/public/m4l/notepat.com/*.amxd 347 + # deploy.fish writes this post-pull on lith — not a dev artifact. 348 + system/public/.commit-ref 347 349 348 350 # Emacs performance logs (keep directory, ignore log files) 349 351 .emacs-logs/*.log
+7 -5
ac-m4l/build-notepat.mjs
··· 48 48 } 49 49 50 50 function gitDirty() { 51 + // Only tracked-file modifications count as "dirty" for versioning — 52 + // stray untracked files on the server (like deploy.fish's 53 + // system/public/.commit-ref) shouldn't make every deploy's version 54 + // look like a dev build. 51 55 try { 52 - const out = execSync("git status --porcelain", { cwd: REPO_ROOT }) 53 - .toString() 54 - .trim(); 55 - return out.length > 0; 56 - } catch { 56 + execSync("git diff --quiet HEAD --", { cwd: REPO_ROOT, stdio: "pipe" }); 57 57 return false; 58 + } catch { 59 + return true; 58 60 } 59 61 } 60 62