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/RepoGitAtom.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/PublicInbox/RepoGitAtom.pm') diff --git a/lib/PublicInbox/RepoGitAtom.pm b/lib/PublicInbox/RepoGitAtom.pm index cf4df11c..531d8b9d 100644 --- a/lib/PublicInbox/RepoGitAtom.pm +++ b/lib/PublicInbox/RepoGitAtom.pm @@ -65,12 +65,12 @@ sub git_atom_sed ($$) { my $buf = ''; my $state = 0; my $rel = $req->{relcmd}; - my $repo_info = $req->{repo_info}; - my $title = join('/', $repo_info->{repo}, @{$req->{extra}}); + my $repo = $req->{-repo}; + my $title = join('/', $repo->{repo}, @{$req->{extra}}); $title = utf8_html("$title, $req->{-tip}"); my $url = repo_root_url($self, $req); my $hdr = {}; - my $subtitle = $repo_info->desc_html; + my $subtitle = $repo->desc_html; $req->{axml} = qq(\n) . qq() . qq($title) . @@ -122,7 +122,7 @@ sub git_atom_cb { my ($r) = @_; my $env = $req->{env}; if (!defined $r) { - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; return [ 400, [ 'Content-Type', 'text/plain' ], [ $git->err ] ]; } @@ -133,12 +133,12 @@ sub git_atom_cb { sub call_git_atom { my ($self, $req) = @_; - my $repo_info = $req->{repo_info}; - my $max = $repo_info->{max_commit_count} || 10; + my $repo = $req->{-repo}; + my $max = $repo->{max_commit_count} || 10; $max = int($max); $max = 50 if $max == 0; - my $git = $repo_info->{git}; + my $git = $repo->{git}; my $env = $req->{env}; my $tip = $req->{-tip}; my $read_log = sub { -- cgit v1.2.3-24-ge0c7