Fix noise in headless mode on STDOUT (#1184)

This commit is contained in:
Allen Hutchison
2025-06-18 11:40:15 -07:00
committed by GitHub
parent 589a7b59c6
commit fbc79c34c9
4 changed files with 9 additions and 2 deletions

View File

@@ -49,7 +49,8 @@ export class GitIgnoreParser implements GitIgnoreFilter {
.map((p) => p.trim())
.filter((p) => p !== '' && !p.startsWith('#'));
if (patterns.length > 0) {
console.log(
// Log the number of patterns loaded on STDERR so it doesn't clutter the output on STDOUT
console.error(
`Loaded ${patterns.length} patterns from ${patternsFilePath}`,
);
}