Skip to content

1.6.7

Choose a tag to compare

@BHFock BHFock released this 21 Nov 21:17
· 118 commits to main since this release
0a9cbd0

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 diff did not show deleted files. Only files present in the working directory were passed to git 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 diff reported success when git diff failed. 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 stash failed with a relative GIT_DIR. With GIT_DIR=../.git from 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 branch now 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 diff exits with code 1 if git diff fails. Previously it exited with 0.
  • git cl diff now includes deleted files in its output.

Other changes

  • During a rebase, merge, cherry-pick or revert, git cl unstash says 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 unstage no 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 one lists one only 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