1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-09-11 21:27:46 +03:00

Mention the git ls-files trick in the readme

This commit is contained in:
Mark Karpov 2021-04-12 22:27:33 +02:00
parent 34bdf62429
commit 77debd145f
No known key found for this signature in database
GPG Key ID: 8564658B2889FF7C

View File

@ -117,6 +117,12 @@ Use `find` to format a tree recursively:
$ ormolu --mode inplace $(find . -name '*.hs')
```
Or find all files in a project with `git ls-files`:
```console
$ ormolu --mode inplace $(git ls-files '*.hs')
```
To check if files are are already formatted (useful on CI):
```console