summaryrefslogtreecommitdiff
path: root/ui-diff.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* ui-diff: add links to pre- and postversion of blobsLars Hjemli2007-10-011-16/+26
* Add prefix parameter to cgit_print_diff()Lars Hjemli2007-10-011-2/+2
* Add prefix parameter to cgit_diff_tree()Lars Hjemli2007-10-011-2/+1
* Merge branch 'jo/dirlink'Lars Hjemli2007-09-031-4/+4
|\
| * Rename dirlink to gitlink.Jeffrey C. Ollie2007-06-041-4/+4
* | Add cgit_diff_link()Lars Hjemli2007-06-171-33/+31
* | ui-diff: close td/tr/table properlyLars Hjemli2007-06-061-0/+2
* | ui-diff: emit table/tr/td at better locationsLars Hjemli2007-06-051-9/+7
|/
* Fixed unexpected tags in html output.Ondrej Jirman2007-05-311-4/+5
* Don't die when diffing trees with subprojectsLars Hjemli2007-05-161-19/+43
* Add support for commitdiff via h parameterLars Hjemli2007-05-161-1/+13
* ui-diff: show /dev/null as filename for add/deleteLars Hjemli2007-05-151-1/+4
* cgit.css: try to make diffs look a little bit nicerLars Hjemli2007-05-141-6/+26
* Add commitdiff between commit and each of it's parentLars Hjemli2007-05-131-4/+41
* Simplify ui-diff.c using the new file-level diff interfaceLars Hjemli2007-05-131-86/+2
* Update to libgit 1.5.2-rc2Lars Hjemli2007-05-081-3/+2
* Layout updateLars Hjemli2007-02-211-1/+0
* Add basic diff viewLars Hjemli2006-12-201-0/+131
>-28/+29 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 Add a global variable, cgit_max_lock_attemps, to avoid the possibility of infinite loops when failing to acquire a lockfile. This 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>