mirror of
https://git.zx2c4.com/cgit
synced 2025-08-05 10:34:28 +02:00
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 <Jason@zx2c4.com>
This commit is contained in:
parent
ce56d89a26
commit
6ca734da8f
3 changed files with 12 additions and 6 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue