]> Lady’s Gitweb - Gitweb/commit
gitweb: Move evaluate_gitweb_config out of run_request
authorJakub Narebski <redacted>
Mon, 5 Jul 2010 18:52:43 +0000 (20:52 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit40d22e6f4c32c41f1f8e60ae2166f6646dbd10c751940f9c2193831d3d3fbc28
tree29ef94702423742289b38de0a75a19b7712b5c8d76b1f677ebdb8d164e4a7341
parentb0ed4835e5b509f56bbc86a3bb4559eb4c765d8b7a3d760cba6cb1fb1eee93c0
gitweb: Move evaluate_gitweb_config out of run_request

Move evaluate_gitweb_config() and evaluate_git_version() out of
run_request() to run(), making them not run one for each request.
This changes how git behaves in FastCGI case.

This change makes it impossible to have config which changes with
request, but I don't think anyone relied on such (hidden action)
behavior.

While at it, reset timer and number of git commands at beginning of
run_request() in new reset_timer() subroutine.  This fixes case when
gitweb was run using FastCGI interface: time is reported for request,
and not for single run of gitweb script.  This changes slightly
behavior in non-FastCGI case: the number of git commands reported is
1 less (running `git --version` one per gitweb is not counted now).

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