]> git.notmuchmail.org Git - notmuch/commit
notmuch new: Store detected removed filenames for later processing.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 01:56:11 +0000 (17:56 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit2e96464f9705be4ec772280cad71a6c9d5831e6f
tree344e01fca10baa09b3e1ae7f98e925a66da452b5
parent03d5175001185a7eb0b3219665ea0974147da8cc
notmuch new: Store detected removed filenames for later processing.

It is essential to defer the actual removal of any filenames from the
database until we are entirely done adding any new files. This is to
avoid any information loss from the database in the case of a renamed
file or directory.

Note that we're *still* not actually doing any removal---still just
printing messages indicating the filenames that were detected as
removed. But we're at least now printing those messages at a time when
we actually *can* do the actual removal.
notmuch-new.c