With `edit`, if a file has unsaved changes it results in an error because `edit` implies reverting the file to what is saved on disk.