summaryrefslogtreecommitdiff
path: root/shared.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Enable url=value querystring parameterLars Hjemli2007-05-181-0/+5
* Add lookup-function for valid repo commandsLars Hjemli2007-05-181-0/+12
* Move cgit_get_repoinfo into shared.cLars Hjemli2007-05-181-0/+13
* Add knobs to enable/disable files/lines changed in log viewLars Hjemli2007-05-181-1/+13
* Restrict length of repo description on repolist pageLars Hjemli2007-05-161-0/+3
* Enable default value for head parameterLars Hjemli2007-05-161-14/+3
* Don't hardcode urls when SCRIPT_NAME is availableLars Hjemli2007-05-151-1/+1
* Add include-parameter to config filesLars Hjemli2007-05-141-0/+2
* Add max-commit-count parameter to cgitrcLars Hjemli2007-05-131-0/+3
* Add standard interface for file diff functionsLars Hjemli2007-05-131-0/+79
* Add shared diff-handling functionsLars Hjemli2007-05-131-2/+45
* Add submodule links in tree listingLars Hjemli2007-05-111-0/+6
* Make snapshot feature configurableLars Hjemli2007-02-081-0/+6
* Add support for snapshotsLars Hjemli2007-02-081-0/+17
* Read repo-info from /etc/cgitrcLars Hjemli2007-02-041-4/+37
* Add parameter to adjust max message length in log listingsLars Hjemli2007-01-281-0/+4
* WIP: add paths/backlinks to tree/blobviewLars Hjemli2007-01-121-0/+3
* Handle %xx encoding in querystringLars Hjemli2007-01-041-0/+13
* Add generic support for search box in page headerLars Hjemli2006-12-281-0/+3
* Add missing ttl-options in configLars Hjemli2006-12-221-0/+8
* Add basic diff viewLars Hjemli2006-12-201-0/+4
* Add cgit_free_commitinfo() and use where neededLars Hjemli2006-12-161-0/+10
* Add cache-root option to /cgit/rcLars Hjemli2006-12-161-0/+2
* Add argument parsing + switch for uncached operationLars Hjemli2006-12-161-0/+3
* Add head comment to shared.cLars Hjemli2006-12-161-0/+8
* Add simple pager to log pageLars Hjemli2006-12-141-3/+6
* Move global variables + callback functions into shared.cLars Hjemli2006-12-111-0/+74
his could happen on broken setups or under crazy server load. Incidentally, this also fixes a lurking bug in cache_lock() where an uninitialized returnvalue was used. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli9-28/+353 This enables internal caching of page output. Page requests are split into four groups: 1) repo listing (front page) 2) repo summary 3) repo pages w/symbolic references in query string 4) repo pages w/constant sha1's in query string Each group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>