Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hclfmt: avoid rewrites when there are no changes in a file #576

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

Mic92
Copy link
Contributor

@Mic92 Mic92 commented Dec 20, 2022

this is faster for large trees and also helps to make tools like
treefmt to work, since it does not
update the mtime of the file.

@hashicorp-cla
Copy link

hashicorp-cla commented Dec 20, 2022

CLA assistant check
All committers have signed the CLA.

@Mic92 Mic92 marked this pull request as draft December 20, 2022 11:24
@Mic92 Mic92 marked this pull request as ready for review December 20, 2022 11:26
this is faster for large trees and also helps to make tools like
[treefmt](https://github.com/numtide/treefmt) to work, since it does not
update the mtime of the file.
@alisdair
Copy link
Contributor

Thanks!

@alisdair alisdair merged commit 938be77 into hashicorp:main Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants