Skip to content

Conversation

@AdiY00
Copy link
Contributor

@AdiY00 AdiY00 commented Nov 30, 2025

Prevents unnecessary read/write cycles when editing files after undo / redo.
From edit -> error "modified externally" -> read -> edit (extra read and edit in context + extra time) to just edit.

  • Update FileTime for reverted files in revert() and unrevert() so the edit tool sees them as freshly read rather than externally modified

*Restoring the old read time would be more semantically correct but adds complexity without functional benefit.

AdiY00 and others added 3 commits November 30, 2025 21:07
Prevents unnecessary write -> error "modified externaly" -> read ->
write cycles when editing files after undo.

- Update FileTime for reverted files in `revert()` and `unrevert()` so
the edit tool sees them as freshly read rather than externally modified

*Restoring the old read time would be more "semantically correct" but
adds complexity without functional benefit.
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.

2 participants