aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorGravatar Ferry Huberts <ferry.huberts@pelagic.nl>2011-07-19 17:51:58 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2011-07-19 18:30:07 (JST)
commitd01c600c179593a53162a9d4e3040ecfc5078fdc (patch)
tree487f8afaefe7b5f09f05d0d3e3796aaff86b931a /cgit.h
parent96f05018c9dbdf8131f18c87ee3bbbac40e0f729 (diff)
downloadcgit-d01c600c179593a53162a9d4e3040ecfc5078fdc.zip
cgit-d01c600c179593a53162a9d4e3040ecfc5078fdc.tar.gz
ui_plain: automatically lookup mimetype when mimetype-file is set
For sites that do not want to configure mime types by hand but still want the correct mime type for 'plain' blobs, configuring a mime type file is made possible. This is handy since such a file is normally already provided (at least on Linux systems). Also, this reflects the gitweb option '$mimetypes_file' Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index bad66f0..db24941 100644
--- a/cgit.h
+++ b/cgit.h
@@ -175,6 +175,7 @@ struct cgit_config {
175 char *index_info; 175 char *index_info;
176 char *logo; 176 char *logo;
177 char *logo_link; 177 char *logo_link;
178 char *mimetype_file;
178 char *module_link; 179 char *module_link;
179 char *project_list; 180 char *project_list;
180 char *readme; 181 char *readme;