From: Jakub Narebski Date: Sat, 24 Apr 2010 13:53:19 +0000 (+0200) Subject: gitweb: href(..., -path_info => 0|1) X-Git-Tag: v1.7.2-rc0~34^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/377bee3424ba871278d230ed296f74ccac8ad607?hp=377bee3424ba871278d230ed296f74ccac8ad607 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 Acked-by: Petr Baudis Signed-off-by: Junio C Hamano ---