about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-06-14 00:14:48 +0000
committerEric Wong <e@80x24.org>2017-06-14 00:15:46 +0000
commit833c1c89b9b482452c2863c623f3e390545d50f0 (patch)
tree03db305e86af198a2f98723bfc67fd5e43dcfd84 /lib/PublicInbox/Search.pm
parent970eb1fd83b93c790d2faed6bf64a97d6d5fe126 (diff)
downloadpublic-inbox-833c1c89b9b482452c2863c623f3e390545d50f0.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 67837f4f..c7c5455d 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -75,6 +75,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',
@@ -98,12 +106,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');