summaryrefslogtreecommitdiff
path: root/notmuch-compact.c
AgeCommit message (Collapse)Author
2014-01-18cli: clean up exit status code returned by the cli commandsJani Nikula
Apart from the status codes for format mismatches, the non-zero exit status codes have been arbitrary. Make the cli consistently return either EXIT_SUCCESS or EXIT_FAILURE.
2014-01-13cli: initialize quiet variable in compactJani Nikula
Surprisingly there's no compiler warning!
2013-11-17compact: tidy formattingTomi Ollila
Notmuch compact code whitespace changes to match devel/STYLE.
2013-11-07cli: add compact --quiet option and silence output with itJani Nikula
Provide a way to silence the output.
2013-11-07cli: add compact --backup=DIRECTORY option, don't backup by defaultJani Nikula
It's the user's decision. The recommended way is to do a database dump anyway. Clean up the relevant printfs too.
2013-11-07cli: return error status if compaction failsJani Nikula
As is customary for any tool.
2013-11-07lib: use the compaction backup path provided by the callerJani Nikula
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-07lib: add closure parameter to compact status update callbackJani Nikula
This provides much more flexibility for the caller.
2013-10-09notmuch-compact: Initial commit of CLIBen Gamari
Introduce the user command exposing the new compaction facility. Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>