From 89abb41ac9a2ca0a4fff0ccf75edf0bc1d050d61 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 12 Mar 2016 03:41:29 +0000 Subject: repobrowse: implement diff view for compatibility This needs to be cleaned up, but we shall support the (potentially very expensive) diff view between arbitrary revisions to avoid breaking existing URLs. The diff parsing code will need to be consolidated between this and the commit view. --- lib/PublicInbox/Repobrowse.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Repobrowse.pm') diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm index 0b09800b..0c4cf144 100644 --- a/lib/PublicInbox/Repobrowse.pm +++ b/lib/PublicInbox/Repobrowse.pm @@ -24,7 +24,8 @@ use Plack::Request; use URI::Escape qw(uri_escape_utf8 uri_unescape); use PublicInbox::RepobrowseConfig; -my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Plain Tag Atom); +my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Plain Tag Atom + Diff); my %VCS = (git => 'Git'); my %LOADED; -- cgit v1.2.3-24-ge0c7