From: Luben Tuikov Date: Mon, 10 Jul 2006 03:18:57 +0000 (-0700) Subject: gitweb.cgi: Teach "a=blob" action to know the blob/file mime type X-Git-Tag: v1.4.2-rc1~50 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/930cf7dd7cc6b87d173f182230763e1f1913d319?ds=sidebyside;hp=930cf7dd7cc6b87d173f182230763e1f1913d319 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 Signed-off-by: Junio C Hamano ---