]> rtime.felk.cvut.cz Git - notmuch.git/commit
lib: provide _notmuch_database_log_append
authorDavid Bremner <david@tethera.net>
Fri, 15 Jul 2016 10:25:41 +0000 (07:25 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 9 Aug 2016 00:34:11 +0000 (09:34 +0900)
commit293186d6c6b1c4d158413de5412e6b4345e94970
tree483440c0ef66a669f559f2fe30273a965122f1f2
parentf45fa5bdd397d52473f7092f7ae3e2ffb9b7aee5
lib: provide _notmuch_database_log_append

_notmuch_database_log clears the log buffer each time. Rather than
introducing more complicated semantics about for this function, provide
a second function that does not clear the buffer. This is mainly a
convenience function for callers constructing complex or multi-line log
messages.

The changes to query.cc are to make sure that the common code path of
the new function is tested.
lib/database.cc
lib/notmuch-private.h
lib/query.cc