Skip to content

1.7.2

Choose a tag to compare

@BHFock BHFock released this 25 Nov 18:19
· 98 commits to main since this release
d0464bb

This release fixes git cl unstash so that it restores only the files of the changelist. Before, it could also change other files that were staged when the changelist was stashed.

Fixed

  • Unstash changed files outside the changelist: git stash push -- <paths> records the whole index, so the stash of one changelist also held files of other changelists that were staged at the time. git cl unstash applied those changes again:

    • a staged file deleted since then came back, staged
    • a file staged again with other content got an AA conflict
    • a file stashed in another changelist in the meantime got that changelist's staged content in the working directory

    git cl unstash now applies only the changes of the changelist's own files. This also works for stashes made by earlier versions.

  • Renames with only the new path in the changelist: stashing and unstashing a changelist that held only the new path of a staged rename (git mv a.txt b.txt) left a DU conflict on the new path, and other files of the changelist came back staged only. The rename and all other changes are now restored as they were.

Other changes

  • New test for unstashing next to staged files of other changelists. The design notes explain why only the changelist's files are unstashed.

Pull requests

  • Unstash only the changes of the changelist's files by @BHFock in #90

Full Changelog: 1.7.1...1.7.2