Skip to content

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

Merged
alisdair merged 1 commit intohashicorp:mainfrom
Mic92:improve-hclfmt
Jan 30, 2023
Merged

hclfmt: avoid rewrites when there are no changes in a file#576
alisdair merged 1 commit intohashicorp:mainfrom
Mic92:improve-hclfmt

Conversation

@Mic92
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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