[PATCH v3 0/4] Hand the repo configuration to the filters
Ferry Huberts
mailings at hupie.com
Wed Mar 9 09:25:43 CET 2011
On 03/09/2011 09:13 AM, Ferry Huberts wrote:
> From: Ferry Huberts <ferry.huberts at pelagic.nl>
>
> 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 (4):
> 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
>
> cgit.c | 27 ++++++++++---
> cgit.h | 6 ++-
> cgitrc.5.txt | 45 ++++++++++++++++++++--
> filters/commit-links.sh | 11 +++++
> filters/syntax-highlighting.sh | 11 +++++
> shared.c | 80 +++++++++++++++++++++++++++++++++++++++-
> ui-commit.c | 6 +-
> ui-repolist.c | 2 +-
> ui-snapshot.c | 2 +-
> ui-summary.c | 2 +-
> ui-tree.c | 2 +-
> 11 files changed, 172 insertions(+), 22 deletions(-)
>
Patch 3 is missing.
I checked my mail server and it has delivered it correctly to
hjemli.net, so maybe it got lost there?
Will try to send 3 again
--
Ferry Huberts
More information about the CGit
mailing list