Only /undo the files which were part of the last commit, don't stomp other dirty files #513

This commit is contained in:
Paul Gauthier 2024-03-22 09:49:16 -07:00
parent 7103029abb
commit a39965a9ff
2 changed files with 13 additions and 6 deletions

View file

@ -539,6 +539,9 @@ class TestCommands(TestCase):
commands.cmd_undo("")
self.assertNotEqual(last_commit_hash, repo.head.commit.hexsha[:7])
self.assertEqual(file_path.read_text(), "first content")
self.assertEqual(other_path.read_text(), "dirty content")
del coder
del commands
del repo