martinvonz / jj

A Git-compatible VCS that is both simple and powerful
https://martinvonz.github.io/jj/
Apache License 2.0
8.32k stars 284 forks source link

WIP: add `jj config unset` #4547

Open pylbrecht opened 5 days ago

pylbrecht commented 5 days ago

Allow unsetting config values similar to git config unset.

$ jj config set --user some-key some-val
$ jj config get some-key
some-val
$ jj config unset --user some-key
$ jj config get some-key
Config error: configuration property "some-key" not found
For help, see https://martinvonz.github.io/jj/latest/config/.

Unsetting nonexistent keys will result in an error:

$ jj config unset --user nonexistent
Error: configuration property "nonexistent" not found
For help, see https://martinvonz.github.io/jj/latest/config/.

Closes #4458

Checklist

If applicable: