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

Prevent updating mtime if formatting did not change file #166

Merged
merged 4 commits into from
Nov 30, 2024

Conversation

bbannier
Copy link
Owner

We would previously always write formatted results to an input file if
-i was passed which causes an update to the file's mtime. This would
likely cause e.g., uninteresting rebuilds for many build systems.

With this patch we skip writing out results if formatting did not change.

We would previously always write formatted results to an input file if
`-i` was passed which causes an update to the file's mtime. This would
likely cause e.g., uninteresting rebuilds for many build systems.

With this patch we skip writing out results if formatting did not change.
@bbannier bbannier self-assigned this Nov 29, 2024
@bbannier bbannier marked this pull request as ready for review November 29, 2024 23:26
@bbannier bbannier merged commit 886e52c into main Nov 30, 2024
14 checks passed
@bbannier bbannier deleted the t/mtime-unmodified branch November 30, 2024 15:15
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.

1 participant