]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Add link to other blame implementation in blame views
authorJakub Narebski <redacted>
Tue, 1 Dec 2009 16:54:26 +0000 (17:54 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
Add link to 'blame_incremental' action (which requires JavaScript) in
'blame' view, and add link to 'blame' action in 'blame_incremental'
view.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 2179bc4c4a56dce2c1fac5fb843538fe22a4ad4daaeddf22230f388811df4bd4..0f6336eb8fcf434c64fd597bc968f803f70b84cc114ad4a460ead5d8e1f8bd5a 100755 (executable)
@@ -5007,6 +5007,17 @@ sub git_blame_common {
        my $formats_nav =
                $cgi->a({-href => href(action=>"blob", -replay=>1)},
                        "blob") .
        my $formats_nav =
                $cgi->a({-href => href(action=>"blob", -replay=>1)},
                        "blob") .
+               " | ";
+       if ($format eq 'incremental') {
+               $formats_nav .=
+                       $cgi->a({-href => href(action=>"blame", javascript=>0, -replay=>1)},
+                               "blame") . " (non-incremental)";
+       } else {
+               $formats_nav .=
+                       $cgi->a({-href => href(action=>"blame_incremental", -replay=>1)},
+                               "blame") . " (incremental)";
+       }
+       $formats_nav .=
                " | " .
                $cgi->a({-href => href(action=>"history", -replay=>1)},
                        "history") .
                " | " .
                $cgi->a({-href => href(action=>"history", -replay=>1)},
                        "history") .
This page took 0.248867 seconds and 4 git commands to generate.