about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-11-08 21:27:14 +0000
committerEric Wong <e@80x24.org>2021-11-09 00:43:30 +0000
commit7ffa98cbbf5bff8225fdfedb0f2b7c2beb5d0a6f (patch)
treee178184eae196a4355f4ee32252542e79f1bb867
parentd4439e7099816bdf1c07957f6d7421106ca29980 (diff)
downloadpublic-inbox-7ffa98cbbf5bff8225fdfedb0f2b7c2beb5d0a6f.tar.gz
While we do detailed indexing of git diffs, the header itself
was failing and queries like 'nq:diff' would not work.

Noticed-by: Rob Herring <robh@kernel.org>
-rw-r--r--lib/PublicInbox/SearchIdx.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index b886ce78..6e2e614c 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -259,6 +259,7 @@ sub index_diff ($$$) {
                 } elsif (m!^diff --git "?[^/]+/.+ "?[^/]+/.+\z!) {
                         # wait until "---" and "+++" to capture filenames
                         $in_diff = 1;
+                        push @xnq, $_;
                 # traditional diff:
                 } elsif (m/^diff -(.+) (\S+) (\S+)$/) {
                         my ($opt, $fa, $fb) = ($1, $2, $3);