Repository navigation
1.7.1
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.mdforREADME.md) stored the spelling as typed. Git still compares paths case-sensitively, so:git cl statusshowed the file twice: as unchanged in its changelist and as modified under No Changelistgit cl diffshowed nothinggit cl stagereported success without staging anythinggit cl pruneoffered to remove the entry
git cl addandgit cl removenow 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].txttherefore also diffed, staged and stasheda.txt, and an entry such as:note.txtmadegit cl stagefail. 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 suggestedgit add,git checkoutandgit rmcommands 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