aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-compact.c
Commit message (Collapse)AuthorAge
* cli: clean up exit status code returned by the cli commandsGravatar Jani Nikula2014-01-18
| | | | | | 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.
* cli: initialize quiet variable in compactGravatar Jani Nikula2014-01-13
| | | | Surprisingly there's no compiler warning!
* compact: tidy formattingGravatar Tomi Ollila2013-11-17
| | | | Notmuch compact code whitespace changes to match devel/STYLE.
* cli: add compact --quiet option and silence output with itGravatar Jani Nikula2013-11-07
| | | | Provide a way to silence the output.
* cli: add compact --backup=DIRECTORY option, don't backup by defaultGravatar Jani Nikula2013-11-07
| | | | | It's the user's decision. The recommended way is to do a database dump anyway. Clean up the relevant printfs too.
* cli: return error status if compaction failsGravatar Jani Nikula2013-11-07
| | | | As is customary for any tool.
* lib: use the compaction backup path provided by the callerGravatar Jani Nikula2013-11-07
| | | | | | | | 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.
* lib: add closure parameter to compact status update callbackGravatar Jani Nikula2013-11-07
| | | | This provides much more flexibility for the caller.
* notmuch-compact: Initial commit of CLIGravatar Ben Gamari2013-10-09
Introduce the user command exposing the new compaction facility. Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>