"--write-mode inplace" should not write when there are no changes #93

Closed
opened 2017-12-27 20:55:09 +01:00 by eschnett · 1 comment
eschnett commented 2017-12-27 20:55:09 +01:00 (Migrated from github.com)

When Brittany does not make any changes to a source file, e.g. because the input was already formatted by Brittany, then it should not modify the file's time stamp. This would prevent unnecessary prompts from the editor to re-load the file.

$ brittany --version
brittany version 0.9.0.0
When Brittany does not make any changes to a source file, e.g. because the input was already formatted by Brittany, then it should not modify the file's time stamp. This would prevent unnecessary prompts from the editor to re-load the file. ``` $ brittany --version brittany version 0.9.0.0 ```
lspitzner commented 2018-04-09 00:35:17 +02:00 (Migrated from github.com)

and of course lazy IO managed to bite me on this one. read in file as lazy text, because our output is/was lazy text. compare. if false, handle is not closed, write fails.

and of course lazy IO managed to bite me on this one. read in file as lazy text, because our output is/was lazy text. compare. if false, handle is not closed, write fails.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#93
There is no content yet.