From: Austin Clements Date: Fri, 18 May 2012 04:13:34 +0000 (-0400) Subject: lib: Make directory document creation optional for _notmuch_directory_create X-Git-Tag: 0.13.1~15 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=f69314fbd37f403a395b7c1c44595c8f696b05b7;hp=f69314fbd37f403a395b7c1c44595c8f696b05b7 lib: Make directory document creation optional for _notmuch_directory_create Previously this function would create directory documents if they didn't exist. As a result, it could only be used on writable databases. This adds an argument to make creation optional and to make this function work on read-only databases. We use a flag argument to avoid a bare boolean and to permit future expansion. Both callers have been updated, but currently retain the old behavior. We'll take advantage of the new argument in the following patches. ---