Skip to content

1.7.1

Choose a tag to compare

@BHFock BHFock released this 24 Nov 20:31
· 101 commits to main since this release
94e250b

This release fixes how git-cl passes file paths to Git. Letter case on macOS and Windows, and file names containing pattern characters, now reach Git exactly as intended.

Fixed

  • Letter case on macOS and Windows: on file systems that ignore case, adding a file in a different case (git cl add one readme.md for README.md) stored the spelling as typed. Git still compares paths case-sensitively, so:

    • git cl status showed the file twice: as unchanged in its changelist and as modified under No Changelist
    • git cl diff showed nothing
    • git cl stage reported success without staging anything
    • git cl prune offered to remove the entry

    git cl add and git cl remove now use the spelling Git knows.

  • File names with pattern characters: Git reads *, ? and [ in paths as wildcards, and a leading : as pathspec magic. A changelist entry such as [ab].txt therefore also diffed, staged and stashed a.txt, and an entry such as :note.txt made git cl stage fail. git-cl now passes every path to Git as a literal name.

  • Backslashes on Linux and macOS: a backslash in a file name was treated as a directory separator. It is now kept as part of the name.

  • Unstash suggestions: when local changes block git cl unstash, the suggested git add, git checkout and git rm commands now quote paths and are relative to the current directory, so they also work for names with spaces and from subdirectories.

If you use macOS or Windows and added files in a different case before this release, those entries still show as [ ] or [XX]. To fix one, run git cl rm <path> (any case works), then git cl add the file again.

Other changes

  • The PyPI page links to the documentation and changelog, and the deprecated licence classifier is removed.
  • New tests for letter case, pattern characters in file names and unstash suggestions. Design notes explain case matching and literal pathspecs.

Pull requests

  • Add project links to the PyPI page and drop the deprecated licence classifier by @BHFock in #88
  • Fix path handling: letter case, pattern characters and conflict hints by @BHFock in #89

Full Changelog: 1.7.0...1.7.1