gitweb: href(..., -path_info => 0|1)
commit377bee3424ba871278d230ed296f74ccac8ad607
authorJakub Narebski <jnareb@gmail.com>
Sat, 24 Apr 2010 13:53:19 +0000 (24 15:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 May 2010 19:09:43 +0000 (1 12:09 -0700)
treecd6b83146ade0ac1b045dc90fd9aadd6994444e2
parent5ae8030fdeb0bb00b94cc830dc98d4fb9d0d532e
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 <jnareb@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl