summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2010-05-07 12:54:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-09 05:26:49 (GMT)
commitc2394fe93441618056363a14c8b63f526afa9615 (patch)
tree8e614dde2f607874412ab361b8d83cdb3f52d432 /help.c
parentc42b00c8f2b8c04ff9829e88dcde92d7294cd460 (diff)
downloadgit-c2394fe93441618056363a14c8b63f526afa9615.zip
git-c2394fe93441618056363a14c8b63f526afa9615.tar.gz
git-c2394fe93441618056363a14c8b63f526afa9615.tar.bz2
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 <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
0 files changed, 0 insertions, 0 deletions