]> Lady’s Gitweb - Gitweb/commit
gitweb.cgi: Teach "a=blob" action to know the blob/file mime type
authorLuben Tuikov <redacted>
Mon, 10 Jul 2006 03:18:57 +0000 (20:18 -0700)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:37 +0000 (14:43 -0400)
commit79276fd6bf78d76ec1f3c7a99bbf286864dac4c3309f3879cbb0164fd7a3ee63
tree3788da9c5694f8492837d588bf65de48b56454344a9a1865389463a74b6c9d7a
parent91d2e6e355d12e2060f044fdbc305c9fb83d2038bbc014ccbcd63161f0cc437e
gitweb.cgi: Teach "a=blob" action to know the blob/file mime type

Now action "blob" knows the file type: if the file type is
not "text/*" then action "blob" defaults to "blob_plain",
i.e. the file is downloaded raw for the browser to interpret.
If the file type is "text/*", then "blob" defaults to the
current "cat -n"-like output, from which you can click
"plain", to get the "blob_plain" output.

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi
This page took 0.127244 seconds and 4 git commands to generate.