# zig fmt: Add \`\-\-exclude\` argument to skip dir/file · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1de63ad79331aec9f53a7a9d95069fd0ca5f66f4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1de63ad79331aec9f53a7a9d95069fd0ca5f66f4

Requested commit: 1de63ad79331aec9f53a7a9d95069fd0ca5f66f4

Commit: 1de63ad79331aec9f53a7a9d95069fd0ca5f66f4

Tree: 5644ee454239ef76cb51fea58d8678673f1a6ead

Author: Cody Tapscott

Committer: Cody Tapscott

## Message

```
zig fmt: Add `--exclude` argument to skip dir/file

This change adds a "--exclude" parameter to zig format, which can be
used to make sure that it does not process certain files or folders
when recursively walking a directory.

To do this, we simply piggy-back on the existing "seen" logic in zig
fmt and mark these files/folders as seen before processing begins.

```

## Parents

- [7f64f7c9259ba5f67adb386ba55473d4b2b74607](https://git.cafe/gitcafe/zig/commit/7f64f7c9259ba5f67adb386ba55473d4b2b74607?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1de63ad79331aec9f53a7a9d95069fd0ca5f66f4?format=markdown)
