mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
cli: only check the ignore list if needed
Premature optimization is the root of all evil, but this is simple enough.
This commit is contained in:
parent
caf5514a36
commit
65ebd34329
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue