aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Update changelog for 0.10.1-1~1.gbpc06fbc releaseHEADmasterGravatar YAEGASHI Takeshi2014-03-02-2/+8
|
* Update debian/patchesGravatar YAEGASHI Takeshi2014-03-02-30/+30
|
* Merge tag 'v0.10.1'Gravatar YAEGASHI Takeshi2014-03-02-69/+133
|\ | | | | | | CGIT 0.10.1
| * Bump version.v0.10.1Gravatar Jason A. Donenfeld2014-02-28-1/+1
| |
| * ui-refs: simplify cmp_age logicGravatar Jason A. Donenfeld2014-02-27-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check in parse_user that eventually makes it into committer_date and tagger_date is: else if (mode == 3 && isdigit(*p)) { *date = atol(p); mode++; } Since isdigit('-') is always false, date will never be negative. Thus the sign of this function: static int cmp_age(int age1, int age2) { if (age1 != 0 && age2 != 0) return age2 - age1; if (age1 == 0 && age2 == 0) return 0; if (age1 == 0) return +1; return -1; } Will always be the same as the sign of this function: static inline int cmp_age(int age1, int age2) { return age2 - age1; } Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Idea-by: Lukas Fleischer <cgit@cryptocrack.de>
| * Remove unused parameter from cgit_print_snapshot()Gravatar Lukas Fleischer2014-02-22-3/+3
| |
| * print download link for reference string length == 1Gravatar Christian Hesse2014-02-21-1/+1
| | | | | | | | | | | | I have a number of repositories that start tagging with just '1' and count up. Actually references with sting length of one are skipped, this patch changes that.
| * Clean up cache documentation.Gravatar Jason A. Donenfeld2014-02-21-22/+25
| | | | | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * Skip cache slot when time-to-live is zeroGravatar Lukas Fleischer2014-02-21-9/+15
| | | | | | | | | | | | | | | | | | | | If time-to-live is set to zero, we don't need to regenerate the cache slots on every request. Instead, just skip the caching process and immediately provide the dynamically generated version of the page. Setting time-to-live to zero is useful when you want to disable caching for certain pages. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
| * git: Update to 1.9.0Gravatar Lukas Fleischer2014-02-21-1/+1
| | | | | | | | | | | | No code changes required, just bump the submodule and Makefile versions. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
| * Makefile: suppress pkg-config errorGravatar Jason A. Donenfeld2014-02-21-1/+1
| | | | | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * Add a cache-snapshot-ttl configuration variableGravatar Lukas Fleischer2014-02-21-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | This can be used to specify the TTL for snapshots. Snapshots are usually static and do not ever change. On the other hand, tarball generation is CPU intensive. One use case of this setting (apart from increasing the lifetime of snapshot cache slots) is caching of snapshots while disabling the cache for static/dynamic HTML pages (by setting TTL to zero for everything except for snapshot requests). Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
| * diffstat: do not rely on uninitialized dataGravatar Jason A. Donenfeld2014-02-21-0/+1
| | | | | | | | | | | | | | | | | | | | | | Right now if you visit: <http://git.zx2c4.com/systemd/diff/src/udev/udev-builtin-input_id.c?id=bcfce235> you'll see that if you reload the page a few times, a bunch of times the diffstat comes out with no lines being shown or changed. I'm not currently sure what the cause of this is, but I suspect it might have to do with this uninitialized data. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * gen-version.sh: check if git is available before trying to call itGravatar Fabien C2014-02-05-1/+1
| | | | | | | | | | | | | | | | Some people may clone the cgit repository and compile within a sandbox or on another machine where git is not necessarily installed. When it happens, cgit is getting compiled with an empty version number. This commit fixes this.
| * simple-authentication: styleGravatar Jason A. Donenfeld2014-01-23-1/+1
| | | | | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * makefile: use LUA_PKGCONFIG to set Lua implementationGravatar Natanael Copa2014-01-22-31/+16
| | | | | | | | | | | | | | | | This breaks compat with the previous LUA_IMPLEMENTATION but gives more flexibility in that user can specify the pkg-config package name directly. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
| * tests: only do lua tests if lua is compiled-inGravatar Jason A. Donenfeld2014-01-20-2/+17
| | | | | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * cgit: add --version argument for printing infoGravatar Jason A. Donenfeld2014-01-20-0/+17
| | | | | | | | | | | | We need this to do runtime tests for make test. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| * cache: use sendfile() instead of a pair of read() + write()Gravatar Sebastian Andrzej Siewior2014-01-19-1/+34
| | | | | | | | | | | | | | | | | | | | | | sendfile() does the same job and avoids to copy the content into userland and back. One has to define NO_SENDFILE in case the OS (kernel / libc) does not supported. It is disabled by default on non-linux environemnts. According to the glibc, sendfile64() was added in Linux 2.4 (so it has been there for a while) but after browsing over the mapage of FreeBSD's I noticed that the prototype is little different. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
| * README: document pkg-config for luajitGravatar Jason A. Donenfeld2014-01-19-1/+1
| | | | | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* | Ignore debian/build/ used by auto builderGravatar YAEGASHI Takeshi2014-03-02-0/+1
| |
* | Update changelogGravatar YAEGASHI Takeshi2014-02-20-1/+7
| |
* | Fix Vcs-Git and Vcs-BrowserGravatar YAEGASHI Takeshi2014-02-20-2/+2
| |
* | Suggest lua-md5 for email-gravater-filter.luaGravatar YAEGASHI Takeshi2014-02-20-1/+1
| |
* | Add 0004-rewrite-email-gravater.lua-using-md5.patchGravatar YAEGASHI Takeshi2014-02-20-0/+39
| |
* | Update example cgitrcGravatar YAEGASHI Takeshi2014-02-20-2/+13
| |
* | Use liblua5.1-dev in wheezy to improve module usabilityGravatar YAEGASHI Takeshi2014-02-20-9/+7
| | | | | | | | | | | | Fix 0003-pkg-config-lua5.1.patch. Remove curl and ca-certificates from Build-Depends.
* | Update changelog using prerelease version 0.10-1~1Gravatar YAEGASHI Takeshi2014-02-18-2/+18
| |
* | Add 0003-pkg-config-lua52.patchGravatar YAEGASHI Takeshi2014-02-18-0/+25
| |
* | Make liblua5.2-dev usable for wheezy compatGravatar YAEGASHI Takeshi2014-02-18-1/+1
| |
* | Add 0002-introduce-debian-standard-build-flags.patchGravatar YAEGASHI Takeshi2014-02-17-0/+35
| |
* | Fix lintian errors/warningsGravatar YAEGASHI Takeshi2014-02-17-4/+13
| |
* | Add debian/watchGravatar YAEGASHI Takeshi2014-02-17-0/+2
| |
* | Update changelogGravatar YAEGASHI Takeshi2014-02-17-1/+1
| |
* | Remove dh_make example filesGravatar YAEGASHI Takeshi2014-02-17-875/+0
| |
* | Add docs, wont compress pdf filesGravatar YAEGASHI Takeshi2014-02-17-4/+29
| |
* | Add postinst/postrm scriptsGravatar YAEGASHI Takeshi2014-02-17-0/+87
| |
* | Add config filesGravatar YAEGASHI Takeshi2014-02-17-0/+80
| |
* | Update debian/controlGravatar YAEGASHI Takeshi2014-02-17-2/+20
| |
* | Update debian/copyrightGravatar YAEGASHI Takeshi2014-02-17-21/+404
| |
* | Set CGIT_SCRIPT_PATH and CGIT_DATA_PATH to suit the Debian standardGravatar YAEGASHI Takeshi2014-02-17-2/+7
| |
* | Add debian/.gitignoreGravatar YAEGASHI Takeshi2014-02-17-0/+4
| |
* | Add git-buildpackage configurationGravatar YAEGASHI Takeshi2014-02-17-0/+4
| |
* | Add 0001-make-a2x-skip-xmllint.patchGravatar YAEGASHI Takeshi2014-02-17-0/+31
| |
* | Debianized by dh_make -s -p cgit_0.10Gravatar YAEGASHI Takeshi2014-02-17-0/+986
|/
* makefile: bump versionv0.10Gravatar Jason A. Donenfeld2014-01-18-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mailmap: source before lighttpdGravatar Jason A. Donenfeld2014-01-18-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui-shared: do not allow negative minutesGravatar Jason A. Donenfeld2014-01-17-0/+2
| | | | | | | Do to timestamp differences, sometimes cgit would should "-0 min", which doesn't make any sense. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* auth: document tweakables in lua scriptGravatar Jason A. Donenfeld2014-01-17-0/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* repolist: make owner clickable to searchGravatar Jason A. Donenfeld2014-01-17-0/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>