[PATCH v4 0/4] Hand the repo configuration to the filters

Ferry Huberts mailings at hupie.com
Wed Mar 23 15:03:17 CET 2011


From: Ferry Huberts <ferry.huberts at pelagic.nl>

Changes compared to v3:
- Incorporated feedback from Lars

Changes compared to v2:
- Split out the first 2 patches into a seperate thread
- Incorporated feedback from Lars

Changes compared to v1:
- Rewritten to hand the repo configuration via environment variables


I have a server setup in which each repo has a trac instance and
for the commit filter I really need to know with which repo I'm
dealing in order to be able to resolve the #123 ticket numbers
into hyperlinks into the correct trac instance.

Lars, patch 3 has become quite a bit more complex. However, adding
      environment variables is a matter of simply extending the
      env_vars array in the prepare_env function; only the code
      that processes that array has become a bit more complex.


Ferry Huberts (5):
  new_filter: determine extra_args from filter type
  cgit_open_filter: also take the repo as a parameter
  cgit_open_filter: hand down repo configuration to script
  filters: document environment variables in filter scripts
  debug logging

 cgit.c                         |   27 +++++++--
 cgit.h                         |    6 ++-
 cgitrc.5.txt                   |   47 ++++++++++++++--
 filters/commit-links.sh        |   11 ++++
 filters/syntax-highlighting.sh |   11 ++++
 shared.c                       |  119 +++++++++++++++++++++++++++++++++++++++-
 ui-commit.c                    |    6 +-
 ui-repolist.c                  |    2 +-
 ui-snapshot.c                  |    2 +-
 ui-summary.c                   |    2 +-
 ui-tree.c                      |    2 +-
 11 files changed, 213 insertions(+), 22 deletions(-)

-- 
1.7.4





More information about the CGit mailing list