Revert files when there is no change
When there is no change, it is better to revert the file.
Reason is that during the updates for improving performance and removing the transaction begin undo/fail.
this has no impact in git-hooks, however this can cause issues when using hooks in dev-assistant.