Repository navigation
1.7.6
This release makes git-cl's messages clearer: failed Git commands are reported without Python's exception text, the unstash refusal says what would happen and what to do, and the unstash and branch output is shorter. It also fixes stashing when a file is marked with git add -N.
Fixed
- When a Git command failed, for example because a pre-commit hook rejected a commit, git-cl printed Python's exception text. It now names the action and the Git command, shows Git's own message, and after a failed commit says that the changelist is kept.
- When files of a changelist have local changes,
git cl unstashno longer calls them "conflicts" or suggests--force. It lists the files with their status and shows how to commit, stash or discard the changes (git restore, marked as discarding), then how to retry. - Git cannot stash at all while a file is marked with
git add -N, even for other files.git cl stashandgit cl branchfailed with Git's "Entry … not uptodate. Cannot merge." for every changelist. They now refuse before stashing anything, name the files, and show how to add or unmark them.
Other changes
git cl unstashprints one summary line and the files instead of eight lines. The note shown when unstashing back to the original branch and the internal "Stash reference updated" note are gone.git cl branchends with the changelists that stay stashed ("Still stashed: …") instead of "Ready to work on your feature!".- An invalid changelist name now gets a message that says which names are allowed; tutorial §2.1 states the rule as well.
- Smaller message fixes: real file names instead of
<files>in a checkout hint, "1 more file", consistent wording of stash errors, no "Unstaged changes after reset:" list after a failed stash. - The demo GIF in the README shows the new branch output.
Pull requests
- Report failed Git commands without the Python exception text by @BHFock in #97
- Shorten the unstash refusal and the unstash and branch output by @BHFock in #98
- Refuse to stash while files are marked with git add -N by @BHFock in #99
- Update the demo for the new branch output by @BHFock in #100
Full Changelog: 1.7.5...1.7.6