3 cd "$(dirname "$0")/.."
5 # Lists the tracked and the new, not ignored files that match a pattern.
7 git ls-files --cached --others --exclude-standard -- "$@"
10 files '*.go' | xargs gofumpt -w
11 files '*.nix' | xargs nixfmt
12 files '*.rst' | xargs rstfmt
13 files '*.md' | xargs mdformat