From 521dc7a4bf4af6115ffc3a94d447689bbaa22272 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 16 Dec 2006 12:33:32 +0000 Subject: Add argument parsing + switch for uncached operation This adds support for the following options to cgit: --root= --cache= --nocache --query= --repo= --page= --head= --sha1= --ofs= On startup, /etc/cgitrc is parsed, followed by argument parsing and finally querystring parsing. If --nocache is specified (or set in /etc/gitrc), caching is disabled and cgit instead generates pages to stdout. The combined effect of these two changes makes testing/debugging a lot less painfull. Signed-off-by: Lars Hjemli --- (limited to 'cache.c') -- cgit v0.9.0.2