Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-08-10 00:42:45 +0400
committerLars Hjemli <hjemli@gmail.com>2009-08-21 16:17:49 +0400
commitd67cc7f9d556650438e421cdcda37bc52710bffd (patch)
treedf131c58de7c712550f124f8fb15aef303ff6054 /cgit.c
parent03389d6e67bfda5cb3ff1504db815f09715ec6f4 (diff)
Add 'linenumbers' config option
Signed-off-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index b0e1c44..a4788cb 100644
--- a/cgit.c
+++ b/cgit.c
@@ -66,6 +66,8 @@ void config_cb(const char *name, const char *value)
ctx.cfg.index_info = xstrdup(value);
else if (!strcmp(name, "logo-link"))
ctx.cfg.logo_link = xstrdup(value);
+ else if (!strcmp(name, "linenumbers"))
+ ctx.cfg.linenumbers = atoi(value);
else if (!strcmp(name, "module-link"))
ctx.cfg.module_link = xstrdup(value);
else if (!strcmp(name, "virtual-root")) {