diff options
author | Lars Hjemli <hjemli@gmail.com> | 2009-07-25 10:19:31 +0000 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-07-25 10:19:31 +0000 |
commit | ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f (patch) | |
tree | 4115c32dc27aa18840dda2c940ca10b4a7d0cf86 /cgit.c | |
parent | 0cbb50841ac82e08e715bbff614f96c7d5ba22fa (diff) | |
download | cgit-ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f.tar cgit-ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f.tar.gz cgit-ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f.zip |
Add support for 'noheader' option
This option can be used to disable the standard cgit page header, which
might be useful in combination with the 'embedded' option.
Suggested-by: Mark Constable <markc@renta.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ void config_cb(const char *name, const char *value) ctx.cfg.virtual_root = ""; } else if (!strcmp(name, "nocache")) ctx.cfg.nocache = atoi(value); + else if (!strcmp(name, "noheader")) + ctx.cfg.noheader = atoi(value); else if (!strcmp(name, "snapshots")) ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); else if (!strcmp(name, "enable-index-links")) |