Discarding staged changes keeps your other edits
- What was broken
- Discarding the staged part of a file also threw away edits that were not staged yet, so work was lost.
- What I changed
- Only the staged changes are now undone, and the unstaged edits stay, the way Magit does it.
- Why it matters
- People can clean up what they staged without losing work in progress.