From: Kay Sievers Date: Sat, 17 Sep 2005 01:00:21 +0000 (+0200) Subject: start searching at the current $hash value X-Git-Tag: v1.4.0~1^2~52 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c39e47d98a05beb6f5194900b1b081ccc00d70e7;p=git.git start searching at the current $hash value Signed-off-by: Kay Sievers --- diff --git a/gitweb.cgi b/gitweb.cgi index 68d4bc38..3a89d826 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -297,11 +297,19 @@ EOF if (!defined $searchtext) { $searchtext = ""; } + my $search_hash; + if (defined $hash) { + $search_hash = $hash; + } else { + $search_hash = "HEAD"; + } $cgi->param("a", "search"); + $cgi->param("h", $search_hash); print $cgi->startform(-method => "get", -action => "$my_uri") . "
\n" . $cgi->hidden(-name => "p") . "\n" . $cgi->hidden(-name => "a") . "\n" . + $cgi->hidden(-name => "h") . "\n" . $cgi->textfield(-name => "s", -value => $searchtext) . "\n" . "
" . $cgi->end_form() . "\n";