]> git.notmuchmail.org Git - notmuch/commit
CLI/new: use configuration variable for backup directory
authorDavid Bremner <david@tethera.net>
Wed, 17 Feb 2021 15:26:15 +0000 (11:26 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 20 Mar 2021 10:53:02 +0000 (07:53 -0300)
commit4e209ca99ac8084a357c6fc8d7773f6207cfa16d
tree5b99f0a0e79aa7a06d28d6ffa08b98bfd125bb14
parenta7873df331bcd53dd1bc8da95c4279163437cc13
CLI/new: use configuration variable for backup directory

The stat is essentially replaced by the mkdir for error detection
purposes.  This changes the default location for backups to make
things tidier, even in non-split configurations. Hopefully there is
not too many user scripts relying on the previous location.

Because the default location may not exist, replace the use of stat
for error detection with a call to mkdir.
notmuch-new.c
test/T055-path-config.sh
test/T530-upgrade.sh