]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Clarify internal documentation of _notmuch_database_filename_to_direntry
authorCarl Worth <cworth@cworth.org>
Thu, 7 Jan 2010 17:31:58 +0000 (09:31 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Jan 2010 17:31:58 +0000 (09:31 -0800)
The original wording made it sound like this function was just doing
some string manipulation. But this function actually creates new
directory documents as a side effect. So make that explicit in its
documentation.

lib/database.cc

index dc967c8c8ae62b65e25168747468a68d46c14d0e..125b37ebb6b5538d4d4d07cf2d6c3eaef2df7ee2 100644 (file)
@@ -723,6 +723,9 @@ _notmuch_database_get_directory_path (void *ctx,
  * database path or absolute with initial components identical to
  * database path), return a new string (with 'ctx' as the talloc
  * owner) suitable for use as a direntry term value.
+ *
+ * The necessary directory documents will be created in the database
+ * as needed.
  */
 notmuch_status_t
 _notmuch_database_filename_to_direntry (void *ctx,