Skip to content

1.6.0

Choose a tag to compare

@BHFock BHFock released this 18 Nov 17:41
· 152 commits to main since this release
7f8b74d

This release makes changelists contain files only: git cl add no longer accepts directories, and suggests the files to add instead.

⚠️ Behaviour change

git cl add <name> <directory> used to succeed and now exits with 1. The error lists the changed files under the directory, with their status, and a ready-to-copy command:

$ git cl add feature lib
Error: 'lib' is a directory. Changelists contain files only.
Changed files under 'lib':
  [ M] lib/old.txt
  [??] lib/sub/new.txt
To add them, run:
  git cl add feature lib/old.txt lib/sub/new.txt
  • Untracked files are listed like any other change, so you can leave out the ones you do not want.
  • With more than 10 changed files, only their number is shown; use git cl status to see them.
  • Other files in the same command are still added, but the command exits with 1.

See Files, not directories in the tutorial.

Fixed

A directory in a changelist only half worked:

  • diff, stage, commit and prune treated it as all files under it, and stage included untracked files while commit did not.
  • git cl status showed it as one unchanged entry and listed its files under "No Changelist".
  • git cl stash refused it.

Existing directory entries

Changelists created with earlier versions may still contain a directory. git cl status now points such entries out, with the git cl rm command and the list of files to add instead. Nothing is changed automatically, and the other commands handle these entries as before.

Pull requests

  • Reject directories in git cl add by @BHFock in #73

Full Changelog: 1.5.0...1.6.0