]> git.notmuchmail.org Git - notmuch/commit - lib/open.cc
lib: remove "path" from notmuch struct
authorDavid Bremner <david@tethera.net>
Tue, 2 Feb 2021 20:43:58 +0000 (16:43 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 20 Mar 2021 10:23:40 +0000 (07:23 -0300)
commit6251e2bb9ee023d25b58384c8a49576086fdaba3
treedfec27a8a13bc9f02b9467330cba6361b2a48370
parent1383481d4a7cee3b59f354a203090c966a2a635e
lib: remove "path" from notmuch struct

This removes duplication between the struct element and the
configuration string_map entry. Create a simple wrapper for setting
the database path that makes sure the trailing / is stripped.
lib/config.cc
lib/database-private.h
lib/database.cc
lib/open.cc