Repository navigation
1.7.2
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 unstashapplied those changes again:- a staged file deleted since then came back, staged
- a file staged again with other content got an
AAconflict - a file stashed in another changelist in the meantime got that changelist's staged content in the working directory
git cl unstashnow 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 aDUconflict 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
Full Changelog: 1.7.1...1.7.2