]> Lady’s Gitweb - Gitweb/commit
gitweb: href(..., -path_info => 0|1)
authorJakub Narebski <redacted>
Sat, 24 Apr 2010 13:53:19 +0000 (15:53 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commitfbc3414a4451668c69325c4f048e60264ad9e527332f4609988ec1f8a461640c
treec9e13ca806271040590edb175aa470202778154a9977549fc9905edbe6c0b2ed
parent8afcf7d1282a95c88a077fcdb3e798a27a219be35a074dff2b6850aa4197e7a4
gitweb: href(..., -path_info => 0|1)

If named boolean option -path_info is passed to href() subroutine, it
would use its value to decide whether to generate path_info URL form.
If this option is not passed, href() queries 'pathinfo' feature to
check whether to generate path_info URL (if generating path_info link
is possible at all).

href(-replay=>1, -path_info=>0) is meant to be used to generate a key
for caching gitweb output; alternate solution would be to use freeze()
from Storable (core module) on %input_params hash (or its reference),
e.g.:
  $key = freeze \%input_params;
or other serialization of %input_params.

While at it document extra options/flags to href().

Signed-off-by: Jakub Narebski <redacted>
Acked-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.181928 seconds and 4 git commands to generate.