I'm considering dropping this entirely since dfpre:, dfpost:
dfn:, and s: can be just as powerful, if not more. patchid: is
inaccurate if either non-standard diff generation options are
used (e.g. -W or -U6); or if a MUAs mangle whitespace.
We'll keep patchid: at the top search input box for now, but the
textarea at the bottom (and possibly another textarea for a more
exact match) is probably more useful and flexible.
}
my $upfx = $ctx->{-upfx} = '../../'; # from "/$INBOX/$OID/s/"
my $patchid = (split(/ /, $$bref))[0]; # ignore commit
- if (defined $patchid) {
- $ctx->{-q_value_html} = "patchid:$patchid";
- $patchid = "\n patchid $patchid";
- } else {
- $patchid = '';
- }
+ $ctx->{-q_value_html} = "patchid:$patchid" if defined $patchid;
my $l = $ctx->{-linkify} = PublicInbox::Linkify->new;
open my $fh, '<:utf8', "$tmp/h" or die "open $tmp/h: $!";
chop(my $buf = do { local $/ = "\0"; <$fh> });
<pre> commit $H$P
tree <a href="$upfx$T/s/">$T</a>
author $au
-committer $co$patchid
+committer $co
<b>$s</b>\n
EOM