Repository navigation
1.6.7
This release shows deletions in git cl diff, handles unusual repository states with clear messages, and tidies up output across several commands.
Fixed
git cl diffdid not show deleted files. Only files present in the working directory were passed togit diff, so deletions, staged or not, never appeared and were reported as missing. Files that Git still knows from the index or HEAD are now included.git cl diffreported success whengit difffailed. A failing diff, for example on a damaged index, now gives an error message and exit code 1. With--both, both diffs still run.git cl stashfailed with a relativeGIT_DIR. WithGIT_DIR=../.gitfrom a subdirectory, stashing failed with "not a git repository". Relative paths in Git's environment are now made absolute at start-up.- Invalid branch names were only rejected after stashing.
git cl branchnow checks the name with Git's rules before anything is stashed. - Clear messages instead of Python tracebacks before the first commit (
stash,branch) and in a bare repository. - Sparse checkout: tracked files outside the checked-out part are shown as unchanged instead of
[XX]"unknown to Git".
⚠️ Behaviour change
git cl diffexits with code 1 ifgit difffails. Previously it exited with 0.git cl diffnow includes deleted files in its output.
Other changes
- During a rebase, merge, cherry-pick or revert,
git cl unstashsays to finish or abort the operation first, instead of advising to create a branch. - Branching from a stashed changelist says that it is stashed instead of "not found".
git cl unstageno longer prints git's own reset output or lists untracked files as unstaged.- The usage line of each subcommand reads
usage: git cl <subcommand> …. - Counts use the right plural ("1 file", "2 files"), and the stash and unstash summaries are worded more clearly.
git cl checkout one onelistsoneonly once in its summary.- A review with ruff, pylint, mypy, bandit, vulture and codespell found no bugs. mypy now passes, and user-facing text uses British English throughout.
Pull requests
- Handle unusual repository states and tidy up messages by @BHFock in #83
- Tidy up findings from static analysis by @BHFock in #84
- Show deletions in git cl diff and report failing diffs by @BHFock in #85
Full Changelog: 1.6.6...1.6.7