]> git.cworth.org Git - notmuch/commit
tag: Automatically limit to messages whose tags will actually change.
authorAustin Clements <amdragon@MIT.EDU>
Wed, 9 Nov 2011 13:44:35 +0000 (08:44 -0500)
committerDavid Bremner <bremner@debian.org>
Mon, 28 Nov 2011 14:54:42 +0000 (06:54 -0800)
commitda67bf12ce122759f72d1d510fb8996df3c9f946
tree0108f6fd958d0bf3937fbac6a7f354fce1d6aea2
parent6cb61729d46335b5ad6ee5e2f618b48fbabda218
tag: Automatically limit to messages whose tags will actually change.

This optimizes the user's tagging query to exclude messages that won't
be affected by the tagging operation, saving computation and IO for
redundant tagging operations.

For example,
  notmuch tag +notmuch to:notmuch@notmuchmail.org
will now use the query
  ( to:notmuch@notmuchmail.org ) and (not tag:"notmuch")

In the past, we've often suggested that people do this exact
transformation by hand for slow tagging operations.  This makes that
unnecessary.
NEWS
notmuch-tag.c