about summary refs log tree commit homepage
path: root/lib/PublicInbox/ViewVCS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-08-29 09:26:47 +0000
committerEric Wong <e@80x24.org>2022-08-29 19:06:35 +0000
commit35b7adee1f01a7cce720d944e1666aa44717d024 (patch)
treebfd2441f6bf8311308400ecad2baadde2035c736 /lib/PublicInbox/ViewVCS.pm
parenta99bf0f90d6d59b8c81876651aaabcd2fd1c4094 (diff)
downloadpublic-inbox-35b7adee1f01a7cce720d944e1666aa44717d024.tar.gz
This is more consistent with the rest of the output where it's
"$TYPE $OID" rather than "$OID $TYPE".  The former also allows
easy copy+pasting into commands for both "git cat-file blob $OID"
and "lei blob $OID".
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r--lib/PublicInbox/ViewVCS.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index 6b6b94fb..3b4fa393 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -415,7 +415,7 @@ sub solve_result {
                 return stream_large_blob($ctx, $res) if defined $ctx->{fn};
                 return html_page($ctx, 200, <<EOM . dbg_log($ctx));
 <pre><b>Too big to show, download available</b>
-"$oid $type $size bytes $raw_link</pre>
+blob $oid $size bytes $raw_link</pre>
 EOM
         }
 
@@ -434,7 +434,7 @@ EOM
         }
 
         $bin and return html_page($ctx, 200,
-                                "<pre>$oid $type $size bytes (binary)" .
+                                "<pre>blob $oid $size bytes (binary)" .
                                 " $raw_link</pre>".dbg_log($ctx));
 
         # TODO: detect + convert to ensure validity
@@ -450,7 +450,7 @@ EOM
                 $$blob = ascii_html($$blob);
         }
 
-        my $x = "<pre>$oid $type $size bytes $raw_link</pre>" .
+        my $x = "<pre>blob $oid $size bytes $raw_link</pre>" .
                 "<hr /><table\nclass=blob>".
                 "<tr><td\nclass=linenumbers><pre>";
         $x .= sprintf("<a id=n$_ href=#n$_>% ${pad}u</a>\n", $_) for (1..$nl);