]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Add link to other blame implementation in blame views
[Gitweb] / 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") .
+               " | ";
+       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") .
This page took 0.168496 seconds and 4 git commands to generate.