all repos — cgit @ dc3282f0baa14949439593729a45fbe143e3622c

a hyperfast web frontend for git written in c

Remove global and obsolete cgit_cmd

This variable was obsoleted by cmd.c.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 25 Mar 2008 02:00:09 +0100
commit

dc3282f0baa14949439593729a45fbe143e3622c

parent

c60781d677ee3b2e53b1f3078fef763622e5effe

2 files changed, 1 insertions(+), 2 deletions(-)

jump to
M cgit.ccgit.c

@@ -181,7 +181,7 @@ item->ttl = ctx.cfg.cache_root_ttl;

return 1; } - if (!cgit_cmd) { + if (!ctx.qry.page) { item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, cache_safe_filename(ctx.repo->url), cache_safe_filename(ctx.qry.raw)));
M cgit.hcgit.h

@@ -189,7 +189,6 @@

extern struct cgit_repolist cgit_repolist; extern struct cgit_context ctx; extern const struct cgit_snapshot_format cgit_snapshot_formats[]; -extern int cgit_cmd; extern struct cgit_repo *cgit_add_repo(const char *url); extern struct cgit_repo *cgit_get_repoinfo(const char *url);