diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 02:07:23 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 02:09:52 (JST) |
commit | 6ca734da8fb246ad2272826331e0d56428b96fa1 (patch) | |
tree | 01abfea3df45135b1114996de29093b6eed7023a /cgitrc.5.txt | |
parent | ce56d89a2662549acd178292450798f5ffcd4bc6 (diff) | |
download | cgit-6ca734da8fb246ad2272826331e0d56428b96fa1.zip cgit-6ca734da8fb246ad2272826331e0d56428b96fa1.tar.gz |
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>
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r-- | cgitrc.5.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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: | |||
590 | This is called whenever cgit writes data to the webpage. | 590 | This is called whenever cgit writes data to the webpage. |
591 | 'filter_close()':: | 591 | 'filter_close()':: |
592 | This is called when the current filtering operation is | 592 | This is called when the current filtering operation is |
593 | completed. | 593 | completed. It must return an integer value. Usually 0 |
594 | indicates success. | ||
594 | 595 | ||
595 | Additionally, cgit exposes to the Lua the following built-in functions: | 596 | Additionally, cgit exposes to the Lua the following built-in functions: |
596 | 597 | ||