From: Lars Hjemli Date: Sat, 16 Dec 2006 12:33:32 +0000 (+0100) Subject: Add argument parsing + switch for uncached operation X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/521dc7a4bf4af6115ffc3a94d447689bbaa22272?hp=521dc7a4bf4af6115ffc3a94d447689bbaa22272 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 ---