diff options
author | Lars Hjemli <hjemli@gmail.com> | 2012-03-18 21:01:28 +0000 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2012-03-18 21:01:28 +0000 |
commit | ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a (patch) | |
tree | 0a2dd27e9d527914019026a9860c93c879b35cd7 /cgit.c | |
parent | Merge branch 'jp/defbranch' (diff) | |
parent | ui_plain: automatically lookup mimetype when mimetype-file is set (diff) | |
download | cgit-pink-ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a.tar.gz cgit-pink-ae90a0b2d18d66e7b1cb98b2e34fd697f8b5311a.zip |
Merge branch 'fh/mimetypes'
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c index 6a75f27..b9b3a66 100644 --- a/cgit.c +++ b/cgit.c @@ -241,6 +241,8 @@ void config_cb(const char *name, const char *value) ctx.cfg.ssdiff = atoi(value); else if (!strcmp(name, "agefile")) ctx.cfg.agefile = xstrdup(value); + else if (!strcmp(name, "mimetype-file")) + ctx.cfg.mimetype_file = xstrdup(value); else if (!strcmp(name, "renamelimit")) ctx.cfg.renamelimit = atoi(value); else if (!strcmp(name, "remove-suffix")) |