From 1f34241e5dc94417d49e2c728e0f2ea04ddc39b0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Feb 2017 20:53:42 +0000 Subject: repobrowse: shorten "repo_info" to "-repo" This makes it more consistent with how we use the Inbox objects for the main code. --- lib/PublicInbox/RepoGitTag.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/PublicInbox/RepoGitTag.pm') diff --git a/lib/PublicInbox/RepoGitTag.pm b/lib/PublicInbox/RepoGitTag.pm index d046f853..6a35f61c 100644 --- a/lib/PublicInbox/RepoGitTag.pm +++ b/lib/PublicInbox/RepoGitTag.pm @@ -76,7 +76,7 @@ sub git_show_tag_as_tag { sub git_tag_show { my ($self, $req, $h, $res) = @_; - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; my $fh; my $hdr = ['Content-Type', 'text/html; charset=UTF-8']; @@ -114,10 +114,10 @@ sub invalid_tag_start { sub git_each_tag_sed ($$) { my ($self, $req) = @_; - my $repo_info = $req->{repo_info}; + my $repo = $req->{-repo}; my $buf = ''; my $nr = 0; - $req->{thtml} = $self->html_start($req, "$repo_info->{repo}: tag list") . + $req->{thtml} = $self->html_start($req, "$repo->{repo}: tag list") . '' . join('', map { "" } qw(tag date subject)). ''; @@ -156,7 +156,7 @@ sub git_each_tag_sed ($$) { sub git_tag_list { my ($self, $req) = @_; - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; # TODO: use Xapian so we can more easily handle offsets/limits # for pagination instead of limiting @@ -183,7 +183,7 @@ sub git_tag_list { sub unknown_tag_type { my ($self, $fh, $req, $h, $type, $hex) = @_; - my $repo_info = $req->{repo_info}; + my $repo = $req->{-repo}; $h = $h->as_html; my $rel = $req->{relcmd}; my $label = "$type $hex"; @@ -191,7 +191,7 @@ sub unknown_tag_type { my $obj_link = qq($label\n); $fh->write($self->html_start($req, - "$repo_info->{repo}: ref: $h") . + "$repo->{repo}: ref: $h") . "\n\n $h (lightweight tag)\nobject $obj_link\n"); } -- cgit v1.2.3-24-ge0c7
$_