Repository navigation
1.6.6
This release keeps submodules out of changelists, like directories, and makes git cl checkout revert all files that can be reverted.
Fixed
git cl branchcould not be used while a submodule had changes. It refused to start and suggested adding the submodule to a changelist, which then failed. Uncommitted changes inside a submodule belong to the submodule's own repository and no longer stop it. A new commit in a submodule still does, because it would otherwise move to the new branch unnoticed. The hint now shows how to record or reset it.- Clear messages for submodules in
git cl add. Adding a submodule said it was a directory with no changed files. Adding a file inside a submodule was accepted, although Git commands on it fail. Both are now refused, with the command to run inside the submodule instead. git cl checkoutreverted nothing if the changelist contained a new file. A staged new file is not in HEAD, so Git rejected the whole checkout. New files are now skipped with a warning, like untracked files, and the other files are reverted.git cl checkoutdid not restore deleted files. Files deleted in the working directory or withgit rmwere skipped as missing. They are now restored from HEAD.
⚠️ Behaviour change
git cl add <submodule>/<file>now fails with exit code 1. Previously the path was added to the changelist.git cl checkoutnow restores deleted files of the changelist.
Other changes
git cl checkoutnever deletes a file: untracked and newly added files are left as they are, because their content is stored nowhere else. The help text, tutorial and design notes now say so.- New tutorial FAQ entry: "Can I add a submodule to a changelist?"
- Design notes corrected: stash rollback restores the changes and does not drop the Git stash.
Pull requests
Full Changelog: 1.6.5...1.6.6