From 8d83eab9d95348e996a2d1f92d970ddc0bf4f85b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Feb 2017 03:31:16 +0000 Subject: repobrowse: rename "plain" endpoint to "raw" This name is shorter and matches terminology in gitweb and other popular git web viewers. --- lib/PublicInbox/Repobrowse.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/Repobrowse.pm') diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm index 34ffd542..de5bd364 100644 --- a/lib/PublicInbox/Repobrowse.pm +++ b/lib/PublicInbox/Repobrowse.pm @@ -23,7 +23,7 @@ use warnings; use URI::Escape qw(uri_escape_utf8); use PublicInbox::RepoConfig; -my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Plain Tag Atom +my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Raw Tag Atom Diff Snapshot); my %VCS = (git => 'Git'); my %LOADED; @@ -57,7 +57,7 @@ sub base_url ($) { # Remove trailing slash in URLs which regular humans are likely to read # in an attempt to improve cache hit ratios. Do not redirect -# plain|patch|blob|fallback endpoints since those could be using +# raw|patch|blob|fallback endpoints since those could be using # automated tools which may not follow redirects automatically # (e.g. curl does not follow 301 unless given "-L") my %NO_TSLASH = map { $_ => 1 } qw(Log Commit Tree Summary Tag); -- cgit v1.2.3-24-ge0c7