Skip to content

1.6.2

Choose a tag to compare

@BHFock BHFock released this 19 Nov 03:58
· 145 commits to main since this release
979f119

This release fixes symbolic links: git-cl now treats a symlink as a file of its own, as Git does, instead of following it to its target.

Fixed

  • git cl add stored the file a symlink points to instead of the symlink itself.
  • git cl status showed a retargeted symlink as a change to its new target, and an untracked symlink as its untracked target, so the wrong files appeared as changed.
  • git cl commit failed for a retargeted symlink.
  • git cl prune removed a changed symlink from its changelist. If you use the post-commit hook, this happened on every commit. git cl stash refused such a changelist.
  • git cl add rejected a symlink to a directory as a directory, and a symlink pointing outside the repository as an unsafe path. Both are single files for Git and can now be added.

If you added symlinks to a changelist with an earlier version, the changelist may contain their targets instead. Check with git cl status, then remove the target with git cl rm and add the symlink again.

Other changes

  • A trailing slash on a symlink to a directory (linkdir/) means its contents. git cl add now rejects it as Git does, and lists the changed files under the real directory with a ready-to-copy command. Without the slash, the symlink itself is added. See Files, not directories in the tutorial.

Pull requests

  • Do not follow symbolic links in file paths by @BHFock in #75

Full Changelog: 1.6.1...1.6.2