Skip to content

1.6.6

Choose a tag to compare

@BHFock BHFock released this 21 Nov 14:48
· 125 commits to main since this release
ccc3971

This release keeps submodules out of changelists, like directories, and makes git cl checkout revert all files that can be reverted.

Fixed

  • git cl branch could 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 checkout reverted 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 checkout did not restore deleted files. Files deleted in the working directory or with git rm were 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 checkout now restores deleted files of the changelist.

Other changes

  • git cl checkout never 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

  • Keep submodules out of changelists and fix checkout of new and deleted files by @BHFock in #82

Full Changelog: 1.6.5...1.6.6