about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-04-12 20:17:47 +0000
committerEric Wong <e@80x24.org>2017-04-13 02:12:58 +0000
commita88989cabe61c45d42146effe994d40dc57aec30 (patch)
tree8fd5b56e9b9cfce6927bb9e2d8f4af2ef23d54dd /lib/PublicInbox/Search.pm
parent3d6bb5064927764e57758d195db78639f4ec87f3 (diff)
downloadpublic-inbox-a88989cabe61c45d42146effe994d40dc57aec30.tar.gz
This can be tied into a repository browser to browse
in-flight topics on a mailing list.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index b0bfe232..ef5e1db0 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -74,6 +74,14 @@ my %prob_prefix = (
 
         q => 'XQUOT',
         nq => 'XNQ',
+        dfn => 'XDFN',
+        dfa => 'XDFA',
+        dfb => 'XDFB',
+        dfhh => 'XDFHH',
+        dfctx => 'XDFCTX',
+        dfpre => 'XDFPRE',
+        dfpost => 'XDFPOST',
+        dfblob => 'XDFPRE XDFPOST',
 
         # default:
         '' => 'XMID S A XNQ XQUOT XFN',
@@ -97,12 +105,16 @@ EOF
         'a:' => 'match within the To, Cc, and From headers',
         'tc:' => 'match within the To and Cc headers',
         'bs:' => 'match within the Subject and body',
+        'dfn:' => 'match filename from diff',
+        'dfa:' => 'match diff removed (-) lines',
+        'dfb:' => 'match diff added (+) lines',
+        'dfhh:' => 'match diff hunk header context (usually a function name)',
+        'dfctx:' => 'match diff context lines',
+        'dfpre:' => 'match pre-image git blob ID',
+        'dfpost:' => 'match post-image git blob ID',
+        'dfblob:' => 'match either pre or post-image git blob ID',
 );
 chomp @HELP;
-# TODO:
-# df (filenames from diff)
-# da (diff a/ removed lines)
-# db (diff b/ added lines)
 
 my $mail_query = Search::Xapian::Query->new('T' . 'mail');