* [PATCH] view: do not hide patches or signatures
@ 2016-03-01 2:08 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-03-01 2:08 UTC (permalink / raw)
To: meta
It's often not that much information and may be useful
to reduce HTTP requests a reader will want to make.
---
lib/PublicInbox/View.pm | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 6b81678..de7bdf9 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -254,17 +254,6 @@ sub index_walk {
my ($fh, $part, $enc, $part_nr, $fhref, $more) = @_;
my $s = add_text_body($enc, $part, $part_nr, $fhref);
- if ($more) {
- my $m = 0;
- # drop the remainder of git patches, they're usually better
- # to review when the full message is viewed
- $s =~ s!^---+\n.*\z!!ms and $m = 1;
-
- # Drop signatures
- $s =~ s/^-- \n.*\z//ms and $m = 1;
- $$more = "<b>More...</b>\n\n$$more" if $m;
- }
-
# kill any leading or trailing whitespace lines
$s =~ s/^\s*$//sgm;
$s =~ s/\s+\z//s;
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-03-01 2:08 7% [PATCH] view: do not hide patches or signatures Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).