]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: when showing history of a tree, show tree link not blob
authorJunio C Hamano <redacted>
Tue, 1 Aug 2006 02:36:50 +0000 (19:36 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
Otherwise clicking on that erroneous blob link would produce nonsense.

Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index 59c3c7ebd510015058975127f9b013d959668b8fcedb2bd9fce15b7ddb1641f0..6e13510c84345d89f8ab57d3764db87b0d6d7b4a05515c2cd3b1b9b5963c62ec 100755 (executable)
@@ -2303,7 +2303,7 @@ sub git_history {
                              "<td class=\"link\">" .
                              $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") .
                              " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$commit")}, "commitdiff") .
                              "<td class=\"link\">" .
                              $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$commit")}, "commit") .
                              " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$commit")}, "commitdiff") .
-                             " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=blob;hb=$commit;f=$file_name")}, "blob");
+                             " | " . $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$ftype;hb=$commit;f=$file_name")}, $ftype);
                        my $blob = git_get_hash_by_path($hash_base, $file_name);
                        my $blob_parent = git_get_hash_by_path($commit, $file_name);
                        if (defined $blob && defined $blob_parent && $blob ne $blob_parent) {
                        my $blob = git_get_hash_by_path($hash_base, $file_name);
                        my $blob_parent = git_get_hash_by_path($commit, $file_name);
                        if (defined $blob && defined $blob_parent && $blob ne $blob_parent) {
This page took 0.343013 seconds and 4 git commands to generate.