🎥 Make videos programmatically with React
Quiet git commands, keep format output visible
Jonny Burger59fb4a388483
diff --git a/pre-commit.ts b/pre-commit.tsindex 5f01fd5029..0e0a689384 100644--- a/pre-commit.ts+++ b/pre-commit.ts@@ -2,8 +2,8 @@ import {readFileSync, existsSync} from 'fs';import path from 'path';import {$} from 'bun';-const staged = await $`git diff --cached --name-only --diff-filter=ACMR`.text();-const unstaged = await $`git diff --name-only`.text();+const staged = await $`git diff --cached --name-only --diff-filter=ACMR`.quiet().text();+const unstaged = await $`git diff --name-only`.quiet().text();const changedFiles = [...new Set([...staged.trim().split('\n'), ...unstaged.trim().split('\n')]),].filter(Boolean);