aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-07-10 00:20:42 -0700
committerJunio C Hamano <junkio@cox.net>2006-07-10 00:20:42 -0700
commit8499294c41fe92a560a083c42caad36b4e27fb51 (patch)
tree128b1568165b698fd0afb306172dbd7cffb8c5da
parent4ad4515dfe15bec59ede5d526c2794bd30b04d86 (diff)
parent25b7c18ecd9779158cb1c02572396bab22c6e0cf (diff)
downloadgit-8499294c41fe92a560a083c42caad36b4e27fb51.tar.gz
git-8499294c41fe92a560a083c42caad36b4e27fb51.tar.xz
Merge branch 'lt/gitweb'
* lt/gitweb: Add "raw" output option to blobs in "tree" view format
-rwxr-xr-xgitweb/gitweb.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 3e2790c5d..cce0753e1 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -1668,6 +1668,7 @@ sub git_tree {
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob;h=$t_hash$base_key;f=$base$t_name")}, "blob") .
# " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blame;h=$t_hash$base_key;f=$base$t_name")}, "blame") .
" | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=history;h=$hash_base;f=$base$t_name")}, "history") .
+ " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob_plain;h=$t_hash;f=$base$t_name")}, "raw") .
"</td>\n";
} elsif ($t_type eq "tree") {
print "<td class=\"list\">" .