mdformat icon indicating copy to clipboard operation
mdformat copied to clipboard

Do not update the timestamp of the files when they are left unchanged

Open paugier opened this issue 3 years ago • 1 comments

Describe the bug

mdformat updates the timestamp of the files even when they are left unchanged. Instead, mdformat should not touch files when they are left unchanged (as black does for example).

Reproduce the bug

Use stat and mdformat on one well formatted file.

List your environment

No response

paugier avatar Sep 14 '22 14:09 paugier

Thanks for the issue and the PR!

I agree we should change this. I hope I'll have the time to review the PR soon. :smile_cat:

hukkin avatar Sep 20 '22 13:09 hukkin