author | Luben Tuikov <ltuikov@yahoo.com> | |
Fri, 7 Jul 2006 06:39:30 +0000 (23:39 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 9 Jul 2006 07:57:22 +0000 (00:57 -0700) | ||
commit | 25b7c18ecd9779158cb1c02572396bab22c6e0cf | |
tree | e0a3a8073061a1a30967f455ddc3d72b25096af0 | tree | snapshot |
parent | 88f0d5d7d95f815d2e8a36a8ceb7459dbd90992c | commit | diff |
Add "raw" output option to blobs in "tree" view format
Add a "raw" output option to blobs in "tree" view format, so that the
user doesn't have to click on "blob", wait for the (binary) file to be
uploaded and shown in "blob" mode, and then click on "plain" to
download the (binary) file.
This is useful when the file is clearly binary and we don't want the
browser to upload and display it in "blob" mode, but we just want to
download it. Case in point: pdf files, wlg.
Note: the "raw" format is equivalent to the blob->plain view, not
blob->head view. I.e. the view has the hash of the file as listed
by git-ls-tree, not just "HEAD".
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Add a "raw" output option to blobs in "tree" view format, so that the
user doesn't have to click on "blob", wait for the (binary) file to be
uploaded and shown in "blob" mode, and then click on "plain" to
download the (binary) file.
This is useful when the file is clearly binary and we don't want the
browser to upload and display it in "blob" mode, but we just want to
download it. Case in point: pdf files, wlg.
Note: the "raw" format is equivalent to the blob->plain view, not
blob->head view. I.e. the view has the hash of the file as listed
by git-ls-tree, not just "HEAD".
Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi | diff | blob | history |