Tomi Ollila
4d5986e8ad
compact: tidy formatting
...
Notmuch compact code whitespace changes to match devel/STYLE.
2013-11-17 20:25:25 -04:00
Jani Nikula
0e04bda2a9
cli: add compact --quiet option and silence output with it
...
Provide a way to silence the output.
2013-11-07 19:16:06 -04:00
Jani Nikula
54e7f1777d
cli: add compact --backup=DIRECTORY option, don't backup by default
...
It's the user's decision. The recommended way is to do a database dump
anyway. Clean up the relevant printfs too.
2013-11-07 06:58:58 -04:00
Jani Nikula
d34be29a41
cli: return error status if compaction fails
...
As is customary for any tool.
2013-11-07 06:54:53 -04:00
Jani Nikula
00d2ac2b41
lib: use the compaction backup path provided by the caller
...
The extra path component added by the lib is a magic value that the
caller just has to know. This is demonstrated by the current code,
which indeed has "xapian.old" both sides of the interface. Use the
backup path provided by the lib caller verbatim, without adding
anything to it.
2013-11-07 06:51:16 -04:00
Jani Nikula
180dba66e4
lib: add closure parameter to compact status update callback
...
This provides much more flexibility for the caller.
2013-11-07 06:46:42 -04:00
Ben Gamari
241a88ce2f
notmuch-compact: Initial commit of CLI
...
Introduce the user command exposing the new compaction facility.
Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
2013-10-09 21:47:13 -03:00