]> git.cworth.org Git - notmuch-old/commit
CLI: make variable n_requested_db_uuid file scope. shared-options
authorDavid Bremner <david@tethera.net>
Sun, 22 Aug 2021 20:06:44 +0000 (13:06 -0700)
committerDavid Bremner <david@tethera.net>
Sun, 22 Aug 2021 20:38:53 +0000 (13:38 -0700)
commit758d0bab2a4169614caa716a7972e0b91ca3f1a2
treeba8da1d58a262d9f668203ad1453d797dc2d3db4
parent84347ffcad24b48390c622e5a96c31c97c094daa
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