cli: add global option "--uuid"
authorDavid Bremner <david@tethera.net>
Sun, 5 Apr 2015 22:39:55 +0000 (07:39 +0900)
committerDavid Bremner <david@tethera.net>
Fri, 14 Aug 2015 16:23:49 +0000 (18:23 +0200)
commitf76d8f82dd004cf14426a91e8a80dcd2a4b97317
treeb2a08fb89242d809d095665a84ff75c6d7d142e3
parent5a3b42fb8c556397841b86c5fda1c4554dab253a
cli: add global option "--uuid"

The function notmuch_exit_if_unmatched_db_uuid is split from
notmuch_process_shared_options because it needs an open notmuch
database.

There are two exceptional cases in uuid handling.

1) notmuch config and notmuch setup don't currently open the database,
   so it doesn't make sense to check the UUID.

2) notmuch compact opens the database inside the library, so we either
   need to open the database just to check uuid, or change the API.
17 files changed:
doc/man1/notmuch.rst
notmuch-client.h
notmuch-compact.c
notmuch-config.c
notmuch-count.c
notmuch-dump.c
notmuch-insert.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/T570-revision-tracking.sh
test/random-corpus.c