Skip to content

gitweb: Improve reading of repo config

Jakub Narebski git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gitweb: Add tests for overriding gitweb config with repo configt/t9500-gitweb-standalone-no-errors.sh+23 -00 replies
2/3gitweb: Read repo config using 'git config -z -l'gitweb/gitweb.perl+108 -70 replies
3/3gitweb: Use config file for repository description and URLsgitweb/gitweb.perl+8 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] gitweb: Improve reading of repo config

This series of patches introduces single-call reading of gitweb-related part of repository configuration in gitweb. Instead of calling git-config once for each config variable we check, read all variables at once for first request of repo config variable.

First patch adds test to check if our changes do not break gitweb too badly, second one introduces mentioned above "eager" repo config reading, and third makes use of the fact that adding new configuration variables to check is not that costly now.

Table of contents:
==================
[PATCH 1/3] gitweb: Add tests for overriding gitweb config with repo config [PATCH 2/3] gitweb: Read repo config using 'git config -z -l' [PATCH 3/3] gitweb: Use config file for repository description and URLs

Diffstat:
=========

 gitweb/gitweb.perl |   82 +++++++++++++++++++++----------------------------
 1 files changed, 33 insertions(+), 47 deletions(-)
Signature · 2 lines
Jakub Narebski, Poland
git version 1.5.3.5