Remove global and obsolete cgit_cmd

This variable was obsoleted by cmd.c.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Cette révision appartient à :
Lars Hjemli 2008-03-25 02:00:09 +01:00
Parent c60781d677
révision dc3282f0ba
2 fichiers modifiés avec 1 ajouts et 2 suppressions

2
cgit.c
Voir le fichier

@ -181,7 +181,7 @@ static int cgit_prepare_cache(struct cacheitem *item)
return 1; return 1;
} }
if (!cgit_cmd) { if (!ctx.qry.page) {
item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root, item->name = xstrdup(fmt("%s/%s/index.%s.html", ctx.cfg.cache_root,
cache_safe_filename(ctx.repo->url), cache_safe_filename(ctx.repo->url),
cache_safe_filename(ctx.qry.raw))); cache_safe_filename(ctx.qry.raw)));

1
cgit.h
Voir le fichier

@ -189,7 +189,6 @@ extern const char *cgit_version;
extern struct cgit_repolist cgit_repolist; extern struct cgit_repolist cgit_repolist;
extern struct cgit_context ctx; extern struct cgit_context ctx;
extern const struct cgit_snapshot_format cgit_snapshot_formats[]; 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_add_repo(const char *url);
extern struct cgit_repo *cgit_get_repoinfo(const char *url); extern struct cgit_repo *cgit_get_repoinfo(const char *url);