[PATCH v2 1/3] cli: refactor "notmuch tag" data structures for tagging operations

Jameson Graef Rollins jrollins at finestructure.net
Mon Mar 26 08:14:33 PDT 2012


On Sun, 25 Mar 2012 22:18:43 +0300, Jani Nikula <jani at nikula.org> wrote:
> To simplify code, keep all tagging operations in a single array
> instead of separate add and remove arrays. Apply tag changes in the
> order specified on the command line, instead of first removing and
> then adding the tags.
> 
> This results in a minor functional change: If a tag is both added and
> removed, the last specified operation is now used. Previously the tag
> was always added.

If this changes the behavior of notmuch then I think there should be a
test for it.  We should probably see a test for the current behavior,
and a modification of it to reflect whatever behavior is changing.

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120326/7be92e03/attachment.pgp>


More information about the notmuch mailing list