unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [RFC PATCH 0/5] cli: notmuch new scandir rework
@ 2016-04-15 19:29 Jani Nikula
  2016-04-15 19:29 ` [RFC PATCH 1/5] cli: remove leftover dir variable Jani Nikula
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jani Nikula @ 2016-04-15 19:29 UTC (permalink / raw)
  To: notmuch

David gave some feedback to my old series to add globbing to new.ignore
[1]. One thing that annoyed me in that series was that we have to do the
ignore check in several places. I thought it would be nice to use the
filter parameter to scandir(3) but alas you can't pass a context
parameter there.

I ended up experimenting with that, and here's the result. Maybe this
makes it easier to read and understand the add_files() function, and
this centralizes the new.ignore handling, but is this really worth it?
I'm unsure.

Patch 1 is trivial and should be pushed no matter what.

BR,
Jani.


[1] id:871t6efgdt.fsf@maritornes.cs.unb.ca

Jani Nikula (5):
  cli: remove leftover dir variable
  cli: drop inode sort order on directories unknown to the database
  util: add a homebrew scandir implementation
  cli: use homebrew scandir in notmuch new add_files
  cli: convert count_files to new scandir

 notmuch-new.c       | 382 ++++++++++++++++++++++++++++------------------------
 util/Makefile.local |   2 +-
 util/scandir.c      |  87 ++++++++++++
 util/scandir.h      |  11 ++
 4 files changed, 305 insertions(+), 177 deletions(-)
 create mode 100644 util/scandir.c
 create mode 100644 util/scandir.h

-- 
2.1.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-02 11:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 19:29 [RFC PATCH 0/5] cli: notmuch new scandir rework Jani Nikula
2016-04-15 19:29 ` [RFC PATCH 1/5] cli: remove leftover dir variable Jani Nikula
2016-05-02 11:23   ` David Bremner
2016-04-15 19:29 ` [RFC PATCH 2/5] cli: drop inode sort order on directories unknown to the database Jani Nikula
2016-04-15 19:29 ` [RFC PATCH 3/5] util: add a homebrew scandir implementation Jani Nikula
2016-04-15 19:29 ` [RFC PATCH 4/5] cli: use homebrew scandir in notmuch new add_files Jani Nikula
2016-04-15 19:29 ` [RFC PATCH 5/5] cli: convert count_files to new scandir Jani Nikula

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).