From 0c3a1dabf7fd10ead73140d3f95b3047b144a834 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Feb 2019 07:36:02 +0000 Subject: viewdiff: support renames and long paths in diffstat anchors This is best-effort, but works well-enough in practice for projects which use shell-friendly filenames as well as the long path names for some Linux kernel selftests. --- lib/PublicInbox/View.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/View.pm') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 69aca3d7..e64c965b 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -571,6 +571,7 @@ sub add_text_body { $ctx->{-apfx} = join('/', @idx); $ctx->{-anchors} = {}; # attr => filename $ctx->{-diff} = $diff = []; + delete $ctx->{-long_path}; my $spfx; if ($ibx->{-repo_objs}) { if (index($upfx, '//') >= 0) { # absolute URL (Atom feeds) -- cgit v1.2.3-24-ge0c7