X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=56c4a6fdd62a3f25709de37730bd0864532bf5bb;hp=e60e86a7630597e993b2a8e5ae001cc2b2ede17b;hb=97216b3cb8012d52c7701b2ec8f874985981124a;hpb=12d328a59701ea6251dcd5f7c1cfe6d047c657b4 diff --git a/notmuch-new.c b/notmuch-new.c index e60e86a7..56c4a6fd 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -374,6 +374,10 @@ add_files (notmuch_database_t *notmuch, strcmp (entry->d_name, ".notmuch") == 0 || _entry_in_ignore_list (entry->d_name, state)) { + if (_entry_in_ignore_list (entry->d_name, state) && state->debug) + printf ("(D) add_files_recursive, pass 1: explicitly ignoring %s/%s\n", + path, + entry->d_name); continue; } @@ -415,8 +419,13 @@ add_files (notmuch_database_t *notmuch, entry = fs_entries[i]; /* Ignore files & directories user has configured to be ignored */ - if (_entry_in_ignore_list (entry->d_name, state)) + if (_entry_in_ignore_list (entry->d_name, state)) { + if (state->debug) + printf ("(D) add_files_recursive, pass 2: explicitly ignoring %s/%s\n", + path, + entry->d_name); continue; + } /* Check if we've walked past any names in db_files or * db_subdirs. If so, these have been deleted. */ @@ -685,6 +694,10 @@ count_files (const char *path, int *count, add_files_state_t *state) strcmp (entry->d_name, ".notmuch") == 0 || _entry_in_ignore_list (entry->d_name, state)) { + if (_entry_in_ignore_list (entry->d_name, state) && state->debug) + printf ("(D) count_files: explicitly ignoring %s/%s\n", + path, + entry->d_name); continue; }