]> git.notmuchmail.org Git - notmuch/commit - test/T750-user-header.sh
CLI/config: default to storing all config in external files
authorDavid Bremner <david@tethera.net>
Fri, 19 Feb 2021 12:41:36 +0000 (08:41 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 27 Mar 2021 12:26:14 +0000 (09:26 -0300)
commitdd9112e7d8e89e8566b90379f5f3b1461a2d2845
tree0dc50fd5aeb6205ca3bbaa99035f5313be7f3b9d
parent7f6aae4f64add17d9750d2d8491930e15fad4fe1
CLI/config: default to storing all config in external files

Previously the fact that some configuration options were only stored
in the database (and thus editing the config file had no effect) was a
source of user confusion. This was fixed with the series ending at
d9af0af1646.

On the other hand, the underlying partition of config options into
those stored by default in the database and those stored in the config
file remained. This is also confusing, since now some invocations of
"notmuch config set" modify the config file, and others silently
modify the database instead.

With this commit, it is up to the user to decide which configuration
to modify. A new "--database" option is provided for notmuch config to
enable modifying the configuration information in the database;
otherwise the default is to update an external config file.
doc/man1/notmuch-config.rst
doc/man1/notmuch.rst
notmuch-config.c
test/T030-config.sh
test/T600-named-queries.sh
test/T750-user-header.sh