From Oliver to ~technomancy/fennel
> Daniel Kempkens <daniel@kempkens.io> kirjoitti 25.4.2024 kello 11.52: > > Hello! > > Would it be possible to not (re-) write a file to disk if fnlfmt hasn’t changed/formatted anything? > Right now, the file is always re-written, which changes the mtime of the file. > > This would be very useful for integrating fnlfmt with treefmt[1], which assumes that "the formatting tool won't write to the files if the formatting hasn't changed"[2]. > > -Daniel > > [1]: https://github.com/numtide/treefmt > [2]: https://github.com/numtide/treefmt/issues/279#issuecomment-2040329943
From Oliver Vartiainen to ~technomancy/fennel
in order to allow tooling around fnlfmt to work right --- cli.fnl | 9 +++++---- fnlfmt.fnl | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cli.fnl b/cli.fnl index 504fb6c..9e01c50 100644 --- a/cli.fnl +++ b/cli.fnl @@ -33,10 +33,11 @@ (os.exit))) (fn fix [filename] [message trimmed]