]> git.notmuchmail.org Git - notmuch/commit
CLI: make variable n_requested_db_uuid file scope.
authorDavid Bremner <david@tethera.net>
Tue, 24 Aug 2021 15:17:10 +0000 (08:17 -0700)
committerDavid Bremner <david@tethera.net>
Sun, 5 Sep 2021 00:07:19 +0000 (17:07 -0700)
commitd447b694b498c3e18a22f1eb15139a798c6aab26
tree7cc9c4f01f7a91da530743ec3a25441f38b9732e
parent005c6201184c539d23d076303bd360bdba412e48
CLI: make variable n_requested_db_uuid file scope.

It turns out that now that we pass an open database into the
subcommands, it is easy to check any requested uuid against the
database at the same time as we process the other shared
arguments. This results in overall less boilerplate code, as well as
making a CLI scope function and variable file scope in notmuch.c.
16 files changed:
notmuch-client.h
notmuch-compact.c
notmuch-config.c
notmuch-count.c
notmuch-dump.c
notmuch-insert.c
notmuch-new.c
notmuch-reindex.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