Bug Description
The "Revert file changes" button (undo icon) doesn't actually revert file changes when the file is staged. It just unstages the file, which is redundant since there's already a separate unstage button (minus icon).
Steps to Reproduce
- Open a task and modify a file in the code editor
- Stage the file using the plus icon
- Click the revert button (circular arrow icon) next to the file
- The file gets unstaged but the changes are still there
Actual vs Expected Behavior
Actual: Clicking revert on a staged file only unstages it, keeping all the changes in the working directory.
Expected: Revert should discard all uncommitted changes and restore the file to the last committed version, regardless of whether it's staged or not.
emdash Version
latest
Operating System
macOS
Additional Context
The tooltip correctly says "Discard all uncommitted changes to this file and restore it to the last committed version", but the implementation was only unstaging staged files instead of actually reverting them.
Bug Description
The "Revert file changes" button (undo icon) doesn't actually revert file changes when the file is staged. It just unstages the file, which is redundant since there's already a separate unstage button (minus icon).
Steps to Reproduce
Actual vs Expected Behavior
Actual: Clicking revert on a staged file only unstages it, keeping all the changes in the working directory.
Expected: Revert should discard all uncommitted changes and restore the file to the last committed version, regardless of whether it's staged or not.
emdash Version
latest
Operating System
macOS
Additional Context
The tooltip correctly says "Discard all uncommitted changes to this file and restore it to the last committed version", but the implementation was only unstaging staged files instead of actually reverting them.