Patch: Flush and Reopen

Martin Owens doctormo at gmail.com
Fri Sep 9 17:43:53 PDT 2011


On Fri, 2011-09-09 at 19:40 -0400, Austin Clements wrote:
> 
> (indented correctly, of course).  Reopen is a method of
> Xapian::Database, which is what notmuch->xapian_db is anyway (unlike,
> flush, which is a member of the subclass WritableDatabase and hence
> requires the cast).  And reopening is a sensible thing to do on both
> read-only and read/write databases.

See attached for the removal of the cast and conditional for reopen.

> Also, in keeping with notmuch code style, you should use tabs for
> indentation and put a space before the open paren argument lists. 

I couldn't detect a consistant style for the tab/spacing and it confused
me greatly. Especially coming from python where spacing is critical.

I've put in tabs, not sure if I've put in enough in the form required.

Best Regards, Martin Owens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-flush-and-reopen-methods-to-the-libnotmuch-and-t.patch
Type: text/x-patch
Size: 5657 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20110909/53e9cf2c/attachment.bin>


More information about the notmuch mailing list