diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-02-01 09:59:13 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-02-01 11:50:24 +0000 |
commit | b1e172acca870e7999f2d2d917db7b4c42aa05b3 (patch) | |
tree | f68ddabb6975f6ac8ef67d55a585f5369f5e4fb2 /cgit.c | |
parent | c6f5bc7264d9c3687a951a76ad93d15a01d7af59 (diff) | |
download | cgit-b1e172acca870e7999f2d2d917db7b4c42aa05b3.tar cgit-b1e172acca870e7999f2d2d917db7b4c42aa05b3.tar.gz cgit-b1e172acca870e7999f2d2d917db7b4c42aa05b3.zip |
Make "owner" column on index page configurable
This is not really needed for personal sites where all repos belong to
the same person. Since it is pretty useful for shared sites however, it
should be configurable.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -172,6 +172,8 @@ void config_cb(const char *name, const char *value) ctx.cfg.enable_http_clone = atoi(value); else if (!strcmp(name, "enable-index-links")) ctx.cfg.enable_index_links = atoi(value); + else if (!strcmp(name, "enable-index-owner")) + ctx.cfg.enable_index_owner = atoi(value); else if (!strcmp(name, "enable-commit-graph")) ctx.cfg.enable_commit_graph = atoi(value); else if (!strcmp(name, "enable-log-filecount")) @@ -354,6 +356,7 @@ static void prepare_context(struct cgit_context *ctx) ctx->cfg.logo = "/cgit.png"; ctx->cfg.local_time = 0; ctx->cfg.enable_http_clone = 1; + ctx->cfg.enable_index_owner = 1; ctx->cfg.enable_tree_linenumbers = 1; ctx->cfg.enable_git_config = 0; ctx->cfg.max_repo_count = 50; |