]> git.cworth.org Git - notmuch/commit
cli: config: make notmuch_config_open() "is new" parameter input only
authorJani Nikula <jani@nikula.org>
Sun, 3 Mar 2013 21:55:08 +0000 (23:55 +0200)
committerDavid Bremner <bremner@debian.org>
Thu, 7 Mar 2013 13:39:12 +0000 (09:39 -0400)
commite76f6517de020783d828be59f461f1d4f465c4b4
tree9bc07e087684487f14f05bcb8e88e30452f0d0d1
parentca3a4fc02287f65c3587908012d36e68df0200b1
cli: config: make notmuch_config_open() "is new" parameter input only

We now have a notmuch_config_is_new() function to query whether a
config was created or not. Change the notmuch_config_open() is_new
parameter into boolean create_new to determine whether the function
should create a new config if one doesn't exist. This reduces the
complexity of the API.
13 files changed:
notmuch-client.h
notmuch-config.c
notmuch-count.c
notmuch-dump.c
notmuch-new.c
notmuch-reply.c
notmuch-restore.c
notmuch-search.c
notmuch-setup.c
notmuch-show.c
notmuch-tag.c
notmuch.c
test/random-corpus.c