feat(GitRepo): Add glob-pattern exclusions for getUncommittedDiff and add minimatch; bump dependencies

This commit is contained in:
2025-11-04 01:26:54 +00:00
parent 5ba6c5370e
commit 9bacb2e548
6 changed files with 2394 additions and 2580 deletions

View File

@@ -122,8 +122,8 @@ export class GitRepo {
const diffs: string[] = [];
for (const row of statusMatrix) {
const [filepath, head, workdir] = row;
if (excludeFiles.includes(filepath)) {
continue; // Skip excluded files
if (excludeFiles.some(pattern => filepath === pattern || plugins.minimatch(filepath, pattern))) {
continue; // Skip excluded files (supports exact matches and glob patterns)
}
let headContent = '';