mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-05 12:33:40 -05:00
- Introduced `GitChangeList` enum to categorize changes as Staged or Unstaged. - Implemented multiple test cases to verify the behavior of undiscardable changes: - Committing a reordered file leaves the working tree clean. - Confirming discard on a reordered file brings the change back. - Mixed changes (real edits with reorders) are not flagged until the real edit is discarded. - Non-Insomnia added and deleted files show no undiscardable warning. - Files from older schemas are flagged as undiscardable. - Real edits show no undiscardable warning in diffs or discard confirmations. - Staged hand-reordered files show no undiscardable warning. - Warnings are consistent in both diffs and discard confirmations for hand-reordered files.