]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: clarify search results page when no matching commit found
[Gitweb] / gitweb.perl
index 13f4a3da5185c6644d320998f396aeb6c1cbc561f085a5ef95d4c8188ff66dc6..f3d8ad86288935dce883c19877f48879022bc01797af0a35e9dfafb72f94b540 100755 (executable)
@@ -6522,12 +6522,13 @@ sub git_search {
                        $paging_nav .= " ⋅ next";
                }
 
-               if ($#commitlist >= 100) {
-               }
-
                git_print_page_nav('','', $hash,$co{'tree'},$hash, $paging_nav);
                git_print_header_div('commit', esc_html($co{'title'}), $hash);
-               git_search_grep_body(\@commitlist, 0, 99, $next_link);
+               if ($page == 0 && !@commitlist) {
+                       print "<p>No match.</p>\n";
+               } else {
+                       git_search_grep_body(\@commitlist, 0, 99, $next_link);
+               }
        }
 
        if ($searchtype eq 'pickaxe') {
This page took 0.263349 seconds and 4 git commands to generate.