]> Lady’s Gitweb - Gitweb/commit
gitweb: Put all per-connection code in run() subroutine
authorJakub Narebski <redacted>
Fri, 7 May 2010 12:54:04 +0000 (14:54 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commit49a157a7260bb7576b8a2a46c9489b4ecf14c9a97fd3af795d45922f77d45f69
tree79128ada64d1b7def7b0f2370c46bbe597a026e01ba2110358cd9ba1f0038af9
parent6f6ee936555f529a58142f0da31c4b4f7a46a34ab6f9cecc704f90731df7b586
gitweb: Put all per-connection code in run() subroutine

All code that is run per-connection (as opposed to those parts of gitweb
code that can be run once) is put into appropriate subroutines:
 - evaluate_uri
 - evaluate_gitweb_config
 - evaluate_git_version (here only because $GIT can be set in config)
 - check_loadavg (as soon as possible; $git_version must be defined)
 - evaluate_query_params (counterpart to evaluate_path_info)
 - evaluate_and_validate_params
 - evaluate_git_dir (requires $project)
 - configure_gitweb_features (@snapshot_fmts, $git_avatar)
 - dispatch (includes setting default $action)

The difference is best viewed with '-w', '--ignore-all-space' option,
because of reindent caused by putting code in subroutines.

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