about summary refs log tree commit homepage
path: root/lib/PublicInbox/Repobrowse.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-09 01:37:03 +0000
committerEric Wong <e@80x24.org>2017-02-09 01:37:03 +0000
commitd9563ea5516e8e786debf223e10ec11695aee9d7 (patch)
treea0842b1ee0953bc8e65d21d5d96432f41973adb7 /lib/PublicInbox/Repobrowse.pm
parentfb9ed5324ec7de9420956840ba9a6585b81e8231 (diff)
downloadpublic-inbox-d9563ea5516e8e786debf223e10ec11695aee9d7.tar.gz
We'll still be keeping "repobrowse" for the public API
for use with .psgi files, but shortening the name means
less typing and we may have command-line tools, too.
Diffstat (limited to 'lib/PublicInbox/Repobrowse.pm')
-rw-r--r--lib/PublicInbox/Repobrowse.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm
index 1050ed50..87e12278 100644
--- a/lib/PublicInbox/Repobrowse.pm
+++ b/lib/PublicInbox/Repobrowse.pm
@@ -21,7 +21,7 @@ package PublicInbox::Repobrowse;
 use strict;
 use warnings;
 use URI::Escape qw(uri_escape_utf8 uri_unescape);
-use PublicInbox::RepobrowseConfig;
+use PublicInbox::RepoConfig;
 
 my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Plain Tag Atom
         Diff Snapshot);
@@ -30,7 +30,7 @@ my %LOADED;
 
 sub new {
         my ($class, $rconfig) = @_;
-        $rconfig ||= PublicInbox::RepobrowseConfig->new;
+        $rconfig ||= PublicInbox::RepoConfig->new;
         bless { rconfig => $rconfig }, $class;
 }
 
@@ -80,8 +80,8 @@ sub no_tslash {
 
 sub root_index {
         my ($self) = @_;
-        my $mod = load_once('PublicInbox::RepobrowseRoot');
-        $mod->new->call($self->{rconfig}); # RepobrowseRoot::call
+        my $mod = load_once('PublicInbox::RepoRoot');
+        $mod->new->call($self->{rconfig}); # RepoRoot::call
 }
 
 sub call {
@@ -97,7 +97,7 @@ sub call {
 
         return $self->root_index($self) unless length($repo_path);
 
-        my $rconfig = $self->{rconfig}; # RepobrowseConfig
+        my $rconfig = $self->{rconfig}; # RepoConfig
         my $repo_info;
         until ($repo_info = $rconfig->lookup($repo_path)) {
                 my $p = shift @extra or last;
@@ -141,14 +141,14 @@ sub call {
         return no_tslash($env) if ($tslash && $NO_TSLASH{$mod});
 
         $req->{tslash} = $tslash;
-        $mod = load_once("PublicInbox::Repobrowse$vcs$mod");
+        $mod = load_once("PublicInbox::Repo$vcs$mod");
         $vcs = load_once("PublicInbox::$vcs");
 
         # $repo_info->{git} ||= PublicInbox::Git->new(...)
         $repo_info->{$vcs_lc} ||= $vcs->new($repo_info->{path});
 
         $req->{expath} = join('/', @extra);
-        my $rv = eval { $mod->new->call($cmd, $req) }; # RepobrowseBase::call
+        my $rv = eval { $mod->new->call($cmd, $req) }; # RepoBase::call
         $rv || r404();
 }