Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
start searching at the current $hash value
author
Kay Sievers
<kay.sievers@suse.de>
Sat, 17 Sep 2005 01:00:21 +0000
(
03:00
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Sat, 17 Sep 2005 01:00:21 +0000
(
03:00
+0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
gitweb.cgi
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
bd4d3c9
)
diff --git
a/gitweb.cgi
b/gitweb.cgi
index 68d4bc389e4ff98c9899e7f56273a8d27ac24b9f..3a89d826ed086262bd0dd20edfe921de4e6adeb3 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-297,11
+297,19
@@
EOF
if (!defined $searchtext) {
$searchtext = "";
}
if (!defined $searchtext) {
$searchtext = "";
}
+ my $search_hash;
+ if (defined $hash) {
+ $search_hash = $hash;
+ } else {
+ $search_hash = "HEAD";
+ }
$cgi->param("a", "search");
$cgi->param("a", "search");
+ $cgi->param("h", $search_hash);
print $cgi->startform(-method => "get", -action => "$my_uri") .
"<div class=\"search\">\n" .
$cgi->hidden(-name => "p") . "\n" .
$cgi->hidden(-name => "a") . "\n" .
print $cgi->startform(-method => "get", -action => "$my_uri") .
"<div class=\"search\">\n" .
$cgi->hidden(-name => "p") . "\n" .
$cgi->hidden(-name => "a") . "\n" .
+ $cgi->hidden(-name => "h") . "\n" .
$cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
"</div>" .
$cgi->end_form() . "\n";
$cgi->textfield(-name => "s", -value => $searchtext) . "\n" .
"</div>" .
$cgi->end_form() . "\n";