@matheusbsbs / matheus-bagliano / commits / c39e47d98a
Fork 0

start searching at the current $hash value

Signed-off-by: Kay Sievers <kay.sievers@suse.de>

Kay Sievers committed Sep 17, 2005 at 03:00 UTC c39e47d98a05beb6f5194900b1b081ccc00d70e7
1 file changed +8
gitweb.cgi
+8
@@ -297,11 +297,19 @@ EOF
297 if (!defined $searchtext) {
298 $searchtext = "";
299 }
300 + my $search_hash;
301 + if (defined $hash) {
302 + $search_hash = $hash;
303 + } else {
304 + $search_hash = "HEAD";
305 + }
306 $cgi->param("a", "search");
307 + $cgi->param("h", $search_hash);
308 print $cgi->startform(-method => "get", -action => "$my_uri") .
309 "<div class=\"search\">\n" .
310 $cgi->hidden(-name => "p") . "\n" .
311 $cgi->hidden(-name => "a") . "\n" .
312 + $cgi->hidden(-name => "h") . "\n" .
313 $cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
314 "</div>" .
315 $cgi->end_form() . "\n";