]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
cli: only check the ignore list if needed
[notmuch] / notmuch-new.c
index 1dd8fc95c97ca4ad40b632a08e30eac80e4efbf8..7f3b3b081c2846b7249e9c83b411d043515b1cec 100644 (file)
@@ -728,7 +728,7 @@ 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)
+           if (state->debug && _entry_in_ignore_list (entry->d_name, state))
                printf ("(D) count_files: explicitly ignoring %s/%s\n",
                        path,
                        entry->d_name);