[RFC/PATCH 0/6] Preparation for more filter types

John Keeping john at keeping.me.uk
Sun Jan 12 18:13:47 CET 2014


This is the preliminary refactoring for supporting more types of filter
(for example Lua scripts or persistent filters).  The final patch adds a
table where more implementations can be added.

The first three (maybe four) patches are sensible cleanups even if we
don't want to take the whole plan any further.

John Keeping (6):
  html: remove redundant htmlfd variable
  ui-snapshot: set unused cgit_filter fields to zero
  filter: pass extra arguments via cgit_open_filter
  filter: add fprintf_filter function
  filter: add interface layer
  filter: introduce "filter type" prefix

 cgit.c        |   6 +--
 cgit.h        |  12 +++++-
 cgitrc.5.txt  |   9 +++++
 filter.c      | 119 ++++++++++++++++++++++++++++++++++++++++++++++++----------
 html.c        |   4 +-
 ui-repolist.c |  10 ++---
 ui-snapshot.c |   9 ++---
 ui-summary.c  |  13 +++----
 ui-tree.c     |   7 ++--
 9 files changed, 140 insertions(+), 49 deletions(-)

-- 
1.8.5.226.g0d60d77



More information about the CGit mailing list