Files
insomnia/packages
Bob Qiu b552cd92fa Add tests and enums for handling undiscardable changes in Git sync
- 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.
2026-10-19 17:46:30 +08:00
..