[PATCH] gitweb.cgi: Teach "a=blob" action to know the blob/file mime type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <ltuikov@xxxxxxxxx>
---
 gitweb/gitweb.cgi |  127 ++++++++++++++++++++++++++++-------------------------
 1 files changed, 67 insertions(+), 60 deletions(-)

Attachment: blob.patch
Description: 2862520298-blob.patch


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]