From 6ca734da8fb246ad2272826331e0d56428b96fa1 Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Tue, 14 Jan 2014 18:07:23 +0100 Subject: filter: allow returning exit code from filter Filters can now indicate a status back to cgit by means of the exit code for exec, or the return value from close for Lua. Signed-off-by: Jason A. Donenfeld --- cgitrc.5.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgitrc.5.txt') diff --git a/cgitrc.5.txt b/cgitrc.5.txt index d8f7d0e..170e825 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -590,7 +590,8 @@ specification with the relevant string; available values are: This is called whenever cgit writes data to the webpage. 'filter_close()':: This is called when the current filtering operation is - completed. + completed. It must return an integer value. Usually 0 + indicates success. Additionally, cgit exposes to the Lua the following built-in functions: -- cgit v1.2.3-70-g09d2