feat(GitRepo): Add glob-pattern exclusions for getUncommittedDiff and add minimatch; bump dependencies
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user