From 6d95361f353d3740cf6cc9ed47f6736c89d5e8ab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 24 Sep 2020 12:54:54 -0400 Subject: [PATCH] add meta todo --- ...rospect_preferred_content_expressions.mdwn | 19 +++++++++++++++++++ ..._95752fa9589819f7bd5860aa8ee1a708._comment | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 doc/todo/introspect_preferred_content_expressions.mdwn create mode 100644 doc/todo/skip_first_pass_in_git_annex_sync/comment_1_95752fa9589819f7bd5860aa8ee1a708._comment diff --git a/doc/todo/introspect_preferred_content_expressions.mdwn b/doc/todo/introspect_preferred_content_expressions.mdwn new file mode 100644 index 0000000000..af13fb1c3c --- /dev/null +++ b/doc/todo/introspect_preferred_content_expressions.mdwn @@ -0,0 +1,19 @@ +Several todos need to examine preferred content expressions to see if +any of the terms in them match some criteria. + +That includes: + +* [[todo/sync_fast_import]] +* [[todo/faster_key_lookup_for_limits]] +* [[todo/skip_first_pass_in_git_annex_sync]] + +Internally, preferred content expressions are compiled +into a `Matcher (AssumeNotPresent -> MatchInfo -> Annex Bool)` + +The presence of the function there is a problem, because haskell does not +allow comparing functions for equality. So probably what is needed is +something that contains that function but also indicates which preferred +content term it's for. + +Or, perhaps, not the term, but the specific criteria needed by each such +todo. diff --git a/doc/todo/skip_first_pass_in_git_annex_sync/comment_1_95752fa9589819f7bd5860aa8ee1a708._comment b/doc/todo/skip_first_pass_in_git_annex_sync/comment_1_95752fa9589819f7bd5860aa8ee1a708._comment new file mode 100644 index 0000000000..113f82c9d9 --- /dev/null +++ b/doc/todo/skip_first_pass_in_git_annex_sync/comment_1_95752fa9589819f7bd5860aa8ee1a708._comment @@ -0,0 +1,12 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2020-09-24T16:42:36Z" + content=""" +Yes. That would need a way to introspect a preferred content expression +to see if the terms used in it match that criteria. + +There are some other todos that also are blocked by the ability to do that, +so I've created a new todo for it. +[[todo/introspect_preferred_content_expressions]] +"""]]