diff options
author | Eric Wong <e@80x24.org> | 2017-02-17 03:31:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-17 03:31:16 +0000 |
commit | 8d83eab9d95348e996a2d1f92d970ddc0bf4f85b (patch) | |
tree | eb71f3f484084b2c1b4bc50446ad035e8b95e111 /lib/PublicInbox/RepoGitTree.pm | |
parent | e7dc3224ad0b497da6ef242e3a9c612c5702514e (diff) | |
download | public-inbox-8d83eab9d95348e996a2d1f92d970ddc0bf4f85b.tar.gz |
This name is shorter and matches terminology in gitweb and other popular git web viewers.
Diffstat (limited to 'lib/PublicInbox/RepoGitTree.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitTree.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/RepoGitTree.pm b/lib/PublicInbox/RepoGitTree.pm index a4add619..5b428da0 100644 --- a/lib/PublicInbox/RepoGitTree.pm +++ b/lib/PublicInbox/RepoGitTree.pm @@ -83,16 +83,16 @@ sub git_blob_show { my $n = 0; my $rel = $req->{relcmd}; - my $plain = join('/', - "${rel}plain", $req->{-repo}->tip, @{$req->{extra}}); - $plain = PublicInbox::Hval->utf8($plain)->as_path; + my $raw = join('/', + "${rel}raw", $req->{-repo}->tip, @{$req->{extra}}); + $raw = PublicInbox::Hval->utf8($raw)->as_path; my $t = cur_path($req); my $s = qq{\npath: $t\n\nblob $hex}; my $end = ''; $git->cat_file($hex, sub { my ($cat, $left) = @_; # $$left == $size - $s .= qq{\t$$left bytes (<a\nhref="$plain">raw</a>)}; + $s .= qq{\t$$left bytes (<a\nhref="$raw">raw</a>)}; $to_read = $$left if $to_read > $$left; my $r = read($cat, my $buf, $to_read); return unless defined($r) && $r > 0; @@ -172,7 +172,7 @@ sub git_tree_sed ($) { elsif ($m eq 'l') { $path = "<i>$path</i>" } $s =~ s/\s+//g; - # 'plain' and 'log' links intentionally omitted + # 'raw' and 'log' links intentionally omitted # for brevity and speed $dst .= qq($m\t). qq($s\t<a\nhref="$pfx/$ref">$path</a>\n); |