Fixes #7352 - ignore zig fmt ignore zig-cache
This commit is contained in:
committed by
Veikka Tuominen
parent
391d81a380
commit
3599fb9bfc
@@ -2655,6 +2655,9 @@ fn fmtPathDir(
|
||||
var dir_it = dir.iterate();
|
||||
while (try dir_it.next()) |entry| {
|
||||
const is_dir = entry.kind == .Directory;
|
||||
|
||||
if (is_dir and std.mem.eql(u8, entry.name, "zig-cache")) continue;
|
||||
|
||||
if (is_dir or mem.endsWith(u8, entry.name, ".zig")) {
|
||||
const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });
|
||||
defer fmt.gpa.free(full_path);
|
||||
|
||||
Reference in New Issue
Block a user