projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf5514
)
cli: only check the ignore list if needed
author
Jani Nikula
<jani@nikula.org>
Sun, 19 Jan 2014 20:32:23 +0000
(22:32 +0200)
committer
David Bremner
<david@tethera.net>
Sun, 26 Jan 2014 13:37:01 +0000
(09:37 -0400)
Premature optimization is the root of all evil, but this is simple
enough.
notmuch-new.c
patch
|
blob
|
history
diff --git
a/notmuch-new.c
b/notmuch-new.c
index 1dd8fc95c97ca4ad40b632a08e30eac80e4efbf8..7f3b3b081c2846b7249e9c83b411d043515b1cec 100644
(file)
--- a/
notmuch-new.c
+++ b/
notmuch-new.c
@@
-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);