v2 of id:"cover.1333231401.git.jani at nikula.org" This series adds support for batch tagging through stdin to "notmuch tag". This should be useful and efficient for e.g. initial tagging scripts. Also, this adds locking around a batch of tag changes, which is also useful for initial tagging scripts. See the test patch for an example using a "here document".
The idea is that the same format (and parser) would be later used for notmuch dump/restore, building on David's earlier work at id:"1324214111-32079-1-git-send-email-david at tethera.net". The v2 only has non-functional changes per David's comments, and squashes the first three patches of v1 into one. BR, Jani. David Bremner (3): hex-escape: (en|de)code strings to/from restricted character set test/hex-xcode: new test binary test/hex-escaping: new test for hex escaping routines Jani Nikula (3): cli: add support for batch tagging operations to "notmuch tag" test: add test for notmuch tag --stdin option man: document notmuch tag --stdin option man/man1/notmuch-tag.1 | 44 +++++++++- notmuch-tag.c | 244 ++++++++++++++++++++++++++++++++++++++++++------ test/.gitignore | 1 + test/Makefile.local | 6 +- test/basic | 2 +- test/hex-escaping | 26 +++++ test/hex-xcode.c | 103 ++++++++++++++++++++ test/notmuch-test | 1 + test/tagging | 13 +++ util/Makefile.local | 2 +- util/hex-escape.c | 168 +++++++++++++++++++++++++++++++++ util/hex-escape.h | 41 ++++++++ 12 files changed, 616 insertions(+), 35 deletions(-) create mode 100755 test/hex-escaping create mode 100644 test/hex-xcode.c create mode 100644 util/hex-escape.c create mode 100644 util/hex-escape.h -- 1.7.5.4