Diff options
-rw-r--r--Makefile12
-rw-r--r--assets/cgit.js9
-rw-r--r--custom/cgitrc7
-rw-r--r--custom/extensions/about-render.lua27
-rw-r--r--custom/extensions/auth-file.lua33
-rw-r--r--custom/extensions/auth-inline.lua33
-rw-r--r--custom/extensions/link-commits.lua15
-rw-r--r--custom/extensions/syntax-highlight.lua6
-rwxr-xr-xcustom/hooks/post-receive.cgit-age3
-rwxr-xr-xcustom/hooks/post-receive.cgit-cache3
-rw-r--r--source/cache.c63
-rw-r--r--source/cache.h3
-rw-r--r--source/cgit.c103
-rw-r--r--source/cgit.h3
-rw-r--r--source/cgit.mk9
-rw-r--r--source/cmd.c17
-rw-r--r--source/cmd.h4
-rw-r--r--source/filter.c48
-rw-r--r--source/html.c15
-rw-r--r--source/html.h10
-rw-r--r--source/parsing.c15
-rw-r--r--source/scan-tree.c30
-rw-r--r--source/shared.c47
-rw-r--r--source/shared.h21
-rw-r--r--source/ui-atom.c3
-rw-r--r--source/ui-blame.c70
-rw-r--r--source/ui-blob.c31
-rw-r--r--source/ui-blob.h9
-rw-r--r--source/ui-clone.c9
-rw-r--r--source/ui-commit.c42
-rw-r--r--source/ui-diff.c126
-rw-r--r--source/ui-diff.h4
-rw-r--r--source/ui-log.c125
-rw-r--r--source/ui-log.h5
-rw-r--r--source/ui-patch.c34
-rw-r--r--source/ui-patch.h3
-rw-r--r--source/ui-plain.c19
-rw-r--r--source/ui-refs.c24
-rw-r--r--source/ui-repolist.c18
-rw-r--r--source/ui-shared.c318
-rw-r--r--source/ui-shared.h81
-rw-r--r--source/ui-snapshot.c51
-rw-r--r--source/ui-snapshot.h3
-rw-r--r--source/ui-ssdiff.c52
-rw-r--r--source/ui-stats.c38
-rw-r--r--source/ui-stats.h3
-rw-r--r--source/ui-summary.c15
-rw-r--r--source/ui-tag.c25
-rw-r--r--source/ui-tree.c86
-rw-r--r--tests/extensions/harness.lua18
-rw-r--r--tests/extensions/lib.sh3
-rw-r--r--tests/extensions/test-about-render.lua84
-rw-r--r--tests/extensions/test-auth.lua93
-rw-r--r--tests/extensions/test-email-avatar.lua3
-rw-r--r--tests/extensions/test-link-commits.lua15
-rw-r--r--tests/extensions/test-syntax-highlight.lua33
-rwxr-xr-xtests/t0002-html-validity.sh3
-rwxr-xr-xtests/t0003-cache.sh6
-rwxr-xr-xtests/t0004-docs.sh18
-rwxr-xr-xtests/t0104-tree.sh3
-rwxr-xr-xtests/t0109-patch.sh15
-rwxr-xr-xtests/t0301-security.sh3
-rwxr-xr-xtests/t0501-about-render.sh6
-rwxr-xr-xtests/t0503-link-commits.sh3
-rwxr-xr-xtests/t0504-email-avatar.sh6
-rwxr-xr-xtests/t0505-auth.sh6
-rwxr-xr-xtools/release-build.sh12
-rwxr-xr-xtools/serve.py21
68 files changed, 763 insertions, 1318 deletions