mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
Only /undo the files which were part of the last commit, don't stomp other dirty files #513
This commit is contained in:
parent
7103029abb
commit
a39965a9ff
2 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue