ui-snapshot.c: remove debug cruft Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 02 Jun 2011 10:26:41 +0000
Properly escape ampersands inside HTML attributes Ampersands ("&") appearing inside HTML attributes need to be translated to "&". Otherwise, invalid XHTML will be generated at various places, such as at tree views containing links to submodules. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Tue, 24 May 2011 20:38:40 +0200
fix virtual-root if script-name is "" In d0cb841 (Avoid trailing slash in virtual-root), virtual-root was set from script-name using trim_end(). However, if script-name was the empty string (""), which happens when cgit is used to serve the root path on a domain (/), trim_end() returns NULL and cgit acts like virtual-root is not available. Now, set virtual-root to "" in this case, which fixes this bug. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Mark Lodato lodatom@gmail.com
Fri, 13 May 2011 19:59:07 -0400
ui-repolist.c: do not return random/stale data from read_agefile When git/date.c:parse_date() cannot parse its input it returns -1. But read_agefile() checks if the result is different from zero, essentialy returning random data from the date buffer when parsing fails. This patch fixes the issue by verifying that the result from parse_date() is positive. Noticed-by: Julius Plenz <plenz@cis.fu-berlin.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 23 May 2011 23:10:37 +0200
Avoid null pointer dereference in cgit_print_diff(). When calling cgit_print_diff() with a bad new_rev and a NULL old_rev, checking for new_rev's parent commit will result in a null pointer dereference. Returning on an invalid commit before dereferencing fixes this. Spotted with clang-analyzer. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Tue, 05 Apr 2011 10:38:53 +0200
Avoid null pointer dereference in reencode(). Returning "*txt" if "txt" is a null pointer is a bad thing. Spotted with clang-analyzer. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Tue, 05 Apr 2011 10:35:43 +0200
Fix memory leak in http_parse_querystring(). Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Thu, 31 Mar 2011 01:21:39 +0200
Remove unused variable from cgit_diff_tree(). Seen with "-Wunused-but-set-variable". Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Wed, 30 Mar 2011 19:17:58 +0200
shared.c: do not modify const memory Noticed-by: zhongjj <zhongjj@lemote.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 May 2011 12:45:32 +0200
tests: add tests for links with space in path and/or args These tests tries to detect bad links in various pages. On the log page, there currently exists links which are not properly escaped due to the use of cgit_fileurl() when building the link. For now, this bug is simply tagged as such. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 May 2011 12:22:56 +0200
tests/setup.sh: add support for known bugs This patch makes it possible to add tests for known bugs without aborting the testrun. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 May 2011 12:21:31 +0200
Fix escaping of paths with spaces Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jonathon Mah me@JonathonMah.com
Sun, 10 Apr 2011 04:10:03 -0700
Add advice about scan-path in cgitrc.5.txt Signed-off-by: Julius Plenz <plenz@cis.fu-berlin.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Julius Plenz plenz@cis.fu-berlin.de
Thu, 10 Mar 2011 17:03:24 +0100
fix two encoding bugs reencode() takes three arguments in the order (txt, from, to), opposed to reencode_string, which will, like iconv, handle the arguments with from and to swapped. Fix that (this makes reencode more intuitive). If src and dst encoding are equivalent, don't do any encoding. If no special encoding parameter is found within the commit, assume UTF-8 and explicitly convert to PAGE_ENCODING. The change to reencode() mentioned above avoids re-encoding a UTF-8 string to UTF-8, for example. Signed-off-by: Julius Plenz <plenz@cis.fu-berlin.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Julius Plenz plenz@cis.fu-berlin.de
Thu, 10 Mar 2011 17:03:23 +0100
new_filter: correctly initialise all arguments for a new filter Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ferry Huberts ferry.huberts@pelagic.nl
Wed, 09 Mar 2011 08:16:59 +0100
source_filter: fix a memory leak Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ferry Huberts ferry.huberts@pelagic.nl
Wed, 09 Mar 2011 08:16:58 +0100
cgitrc.5: tar.xz is a supported snapshot format When tar.xz support was added in 0642435fed (2009-12-08: Add .tar.xz-snapshot support), cgitrc.5 was not updated to match. This patch fixes the issue. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 26 Mar 2011 13:40:20 +0100
Fix crash when projectsfile cannot be opened This patch makes cgit properly abort in case the projectsfile cannot be opened. Without the added return cgit continues using the projects pointer which is NULL and thus causes a segfault.
Stefan Gehn stefan@srcbox.net
Sat, 26 Mar 2011 09:51:39 +0100
CGIT 0.9 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 05 Mar 2011 14:23:12 +0100
Update README
Lars Hjemli hjemli@gmail.com
Sat, 05 Mar 2011 14:21:47 +0100
ui-diff.c: avoid html injection When path-filtering was used in commit-view, the path filter was included without proper html escaping. This patch closes the hole. Signed-off-by: Lukasz Janyst <ljanyst@cern.ch> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukasz Janyst ljanyst@cern.ch
Sat, 05 Mar 2011 14:10:55 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 05 Mar 2011 14:01:59 +0100
Merge branch 'br/misc' * br/misc: Use transparent background for the cgit logo ssdiff: anchors for ssdiff implement repo.logo and repo.logo-link
Lars Hjemli hjemli@gmail.com
Sat, 19 Feb 2011 14:51:00 +0100
Merge branch 'jh/scan-path' * jh/scan-path: scan_path(): Do not recurse into hidden directories by default scan_path(): Improve handling of inaccessible directories
Lars Hjemli hjemli@gmail.com
Sat, 19 Feb 2011 14:25:55 +0100
Merge branch 'jh/graph' * jh/graph: ui-log: Move 'Age' column when commit graph is present ui-log: Line-wrap long commit subjects when showmsg is enabled ui-log: Colorize commit graph ui-log: Implement support for commit graphs ui-log: Change display of full commit messages (and notes) Conflicts: cgit.css
Lars Hjemli hjemli@gmail.com
Sat, 19 Feb 2011 14:01:59 +0100
Merge branch 'lh/improve-range-search' * lh/improve-range-search: html.c: use '+' to escape spaces in urls ui-log.c: improve handling of range-search argument Add vector utility functions
Lars Hjemli hjemli@gmail.com
Sat, 19 Feb 2011 14:00:56 +0100
Use GIT-1.7.4 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 19 Feb 2011 13:55:43 +0100
ui-stats: Remove unnecessary #include <string-list.h> is already #included from cgit.h Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:48 +0100
Merge branch 'tz/make-improvements'
Lars Hjemli hjemli@gmail.com
Wed, 10 Nov 2010 00:28:56 +0100
ui-log: Prevent crash when given empty range search Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 28 Oct 2010 17:05:39 +0200
Makefile: avoid spurious rebuilds of git sources due to `sudo make` Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 09 Nov 2010 18:08:38 +0100
ui-log: Fix filecount/linecount when path limit is in effect When using ui-log with path limits, the listing of commits enables parent rewriting in Git's internal log machinery. This did not work well together with cgit_diff_commit() which is used to generate the filecount and linecount numbers for each commit in the log view. cgit_diff_commit() would operate without any path limits, and would therefore process the full diff between the commits shown (which, because of parent rewriting, is not the same as processing the diff for the commit itself). Additionally, the bottom commit in the log view would (again, because of parent rewriting) have zero parents, causing us to process the entire diff between the empty tree and that commit. Since path limits were not in effect, this would (in large projects) reports thousands of files and millions of lines changed in that bottom commit. This patch fixes the issue by applying the same path limit to cgit_diff_commit() as is applied to the rest of the log view. The result is that the filecount/linecount now only reflects the diff as it pertains to the given path limit. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 30 Sep 2010 20:15:14 +0200
Add `strict-export` option This option is used to specify a filename which needs to be present in the repositories found during `scan-path` processing. By setting this option to 'git-daemon-export-ok', only repositories explicitly marked for git daemon export will be included in the cgit configuration. Signed-off-by: Felix Hanley <felix@seconddrawer.com.au> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Felix Hanley felix@seconddrawer.com.au
Mon, 08 Nov 2010 19:41:13 +0100
Fix a typo in README, s/ExecCGI/+ExecCGI Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Kamil Kaminski kamilkss@gmail.com
Sun, 10 Oct 2010 23:58:30 -0500
Append path and branch to atom feed title Currently all atom feeds for a repository get the same title but they are actually unique per path and per branch. Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Sep 2010 14:25:32 +0100
Use committer date for atom feed entry updated element Committer date reflects the most recent change and is used for ordering the log page (author date is still available in published element of the feed entry). Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Chris Mayo aklhfex@gmail.com
Sat, 25 Sep 2010 13:05:52 +0100
Merge branch 'stable' Conflicts: scan-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Nov 2010 16:25:23 +0100
Makefile: add -MP option Work around errors `make` gives when header files are removed without the Makefile being updated. Signed-off-by: Lynn Lin <Lynn.Lin@emc.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Nov 2010 16:13:49 +0100
Merge branch 'stable' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 27 Sep 2010 08:03:30 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 19 Sep 2010 20:58:15 +0200
Merge branch 'ml/bugfix'
Lars Hjemli hjemli@gmail.com
Sun, 19 Sep 2010 19:00:05 +0200
Merge branch 'lh/section-from-path' Conflicts: scan-tree.c
Lars Hjemli hjemli@gmail.com
Sun, 19 Sep 2010 18:46:17 +0200
Merge branch 'lh/readme'
Lars Hjemli hjemli@gmail.com
Sun, 19 Sep 2010 18:43:58 +0200
Use GIT-1.7.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 19 Sep 2010 14:00:46 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Wed, 01 Sep 2010 12:32:57 +0000
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 29 Aug 2010 17:40:51 +0200
Use GIT-1.7.2.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 Aug 2010 13:29:57 +0200
Support refspecs in about-filter. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jason A. Donenfeld Jason@zx2c4.com
Wed, 04 Aug 2010 00:45:42 +0200
Merge branch 'jd/gitolite'
Lars Hjemli hjemli@gmail.com
Wed, 04 Aug 2010 03:10:29 +0200
Merge branch 'js/notes'
Lars Hjemli hjemli@gmail.com
Wed, 04 Aug 2010 03:10:24 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 03 Aug 2010 22:52:11 +0200
commit-links.sh: Seperate the expressions for filtering commit messages. This allows for putting descriptions closer to their expressions. It should also make it clearer how to apply an expression conditionally.
Jeff Smith whydoubt@yahoo.com
Mon, 05 Jul 2010 22:38:34 -0500
Makefile: do not include dependency-file on `make clean` When envoking clean target, make should not perform the dependency file generation triggered by include.
Lynn Lin Lin_Lynn@emc.com
Thu, 15 Jul 2010 14:38:06 +0800
Merge branch 'jh/ignorews'
Lars Hjemli hjemli@gmail.com
Sun, 18 Jul 2010 15:03:30 +0200
Merge branch 'lh/macros'
Lars Hjemli hjemli@gmail.com
Sun, 18 Jul 2010 15:03:08 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 13 Jul 2010 21:55:47 +0200
Merge branch 'lh/range-search'
Lars Hjemli hjemli@gmail.com
Tue, 22 Jun 2010 16:16:24 +0200
Merge branch 'jh/context-lines' Conflicts: cgit.c cgit.h
Lars Hjemli hjemli@gmail.com
Tue, 22 Jun 2010 16:16:12 +0200
Merge branch 'jh/path-limit' Conflicts: cgit.h ui-commit.c
Lars Hjemli hjemli@gmail.com
Tue, 22 Jun 2010 16:15:48 +0200
Fix style of commit-filter links in commit-subject. When using the commit-filter functionality to add e.g. bug tracker links to commit messages, the style of those links is mangled by a CSS directive that is meant to only apply to decorations that are listed on the commit-subject line. Fix this directive to only apply to the decorations. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Fri, 18 Jun 2010 17:56:11 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:52:42 +0200
Merge branch 'ag/atom-fixes'
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:42:12 +0200
Merge branch 'lh/noweb'
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:41:32 +0200
Merge branch 'ml/plain-improvements-part1'
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:40:34 +0200
Merge branch 'sn/subject-link'
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:38:46 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Thu, 08 Apr 2010 00:50:20 +0200
ui-tree: add link to plain view for blobs in tree listing Suggested-by: Robert Weidlich <mail@robertweidlich.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Feb 2010 22:18:00 +0100
Use GIT-1.7.0 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Feb 2010 13:39:53 +0100
Merge branch 'html-updates' of git://github.com/MarkLodato/cgit
Lars Hjemli hjemli@gmail.com
Sat, 27 Feb 2010 13:20:27 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 27 Feb 2010 12:53:27 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 12 Dec 2009 12:09:47 +0100
Add .tar.xz-snapshot support Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Andreas Wiese aw-devel@instandbesetzt.net
Tue, 08 Dec 2009 22:18:11 +0100
Merge branch 'lh/remote-branches'
Lars Hjemli hjemli@gmail.com
Tue, 08 Dec 2009 19:34:30 +0100
Merge branch 'ro/ssdiff'
Lars Hjemli hjemli@gmail.com
Tue, 08 Dec 2009 19:32:48 +0100
Merge branch 'master' of http://op-co.de/cgit
Lars Hjemli hjemli@gmail.com
Tue, 08 Dec 2009 18:31:07 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 08 Dec 2009 18:30:02 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 07 Nov 2009 18:16:50 +0100
Add NO_OPENSSL option Linking with OpenSSL is not always desirable. Add NO_OPENSSL option to use SHA-1 code bundled with Git. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Mikhail Gusarov dottedmag@dottedmag.net
Thu, 29 Oct 2009 03:39:55 +0600
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 07 Nov 2009 15:35:36 +0100
ui-shared.c: prettify download links when generated from tag page Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 16 Oct 2009 02:03:32 +0200
ui-tag: make output more similar to commit view Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 06 Oct 2009 20:33:04 +0200
ui-tag: add snapshot links Signed-off-by: Alexey Nezhdanov <snakeru@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Alexey Nezhdanov snakeru@gmail.com
Sun, 27 Sep 2009 23:00:29 +0400
Skip leading "/" in url querystring value Makes it easier to rewrite :) lighttpd-sandbox: rewrite "/cgit.cgi?url=%{enc:request.path}&%{request.query}"; Signed-off-by: Stefan Bühler <source@stbuehler.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Bühler source@stbuehler.de
Mon, 14 Sep 2009 21:37:13 +0000
Fix repolist search links with virtual root Signed-off-by: Geoff Johnstone <geoff.johnstone@googlemail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Geoff Johnstone qwerty@acm.org
Sun, 20 Sep 2009 11:32:07 +0100
cgitrc.5.txt: Change repo.group to section in example config. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Loui Chang louipc.ist@gmail.com
Mon, 14 Sep 2009 01:21:11 -0400
cgitrc.5.txt: Add mansource and manmanual. This prevents FIXMEs from appearing. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Loui Chang louipc.ist@gmail.com
Mon, 14 Sep 2009 01:21:10 -0400
CGIT 0.8.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Sep 2009 22:17:02 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 13 Sep 2009 22:15:38 +0200
Merge branch 'lh/repo-scan'
Lars Hjemli hjemli@gmail.com
Sun, 13 Sep 2009 22:02:07 +0200
Merge branch 'fp/linenumbers'
Lars Hjemli hjemli@gmail.com
Sun, 13 Sep 2009 22:01:52 +0200
Use GIT-1.6.4.3 Signed-off-by: Lars Hjemli <larsh@slackbox.hjemli.net>
Lars Hjemli larsh@slackbox.hjemli.net
Sun, 13 Sep 2009 21:56:45 +0200
Merge branch 'stable'
Lars Hjemli larsh@slackbox.hjemli.net
Sun, 06 Sep 2009 19:33:27 +0200
cgitrc.5.txt: fix description and markup for 'snapshots' option Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 08:00:37 +0200
scan-tree: split the pw_gecos field at the ',' to get the real name Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Naewe stefan.naewe@atlas-elektronik.com
Thu, 20 Aug 2009 08:24:51 +0200
cgit.c: fix caching keyed on PATH_INFO with no QUERY_STRING When generating a hash for caching, ctx.qry.raw is used as key. And since cgit_parse_url() zero-terminates it's argument (after the repo path), ctx.qry.raw must xstrdup(ctx.qry.url). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Aug 2009 10:07:51 +0200
Add and use a common readfile() function This function is used to read the full content of a textfile into a newly allocated buffer (with zerotermination). It replaces the earlier readfile() in scan-tree.c (which was rather error-prone[1]), and is reused by read_agefile() in ui-repolist.c. 1: No checks for EINTR and EAGAIN, fixed-size buffer Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 18 Aug 2009 17:17:41 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 18 Aug 2009 17:21:52 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 18 Aug 2009 13:14:11 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Mon, 17 Aug 2009 10:17:23 +0200
ui-log.c: handle lightweight tags when printing commit decorations Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 16 Aug 2009 19:52:27 +0200
ui-refs.c: improve handling of lightweight tags When a lightweight tag is referencing a commit object, cgit now uses the commit date when comparing tag age. Also, the commitdate and author info is printed in the refs view, making lightweight tags appear similar to annotated tags. Signed-off-by: Stefan Bühler <lighttpd@stbuehler.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Bühler lighttpd@stbuehler.de
Sun, 16 Aug 2009 19:35:18 +0200
Use GIT-1.6.3.4 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 13 Aug 2009 07:11:41 +0200
Merge branch 'lh/embedded'
Lars Hjemli hjemli@gmail.com
Tue, 11 Aug 2009 10:12:53 +0200
cgitrc.5.txt: describe where/how cgit will locate cgitrc Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Aug 2009 18:58:29 +0200
cgit.c: make '/cgit.png' the default value for 'logo' option Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Aug 2009 18:14:12 +0200
cgit.css: align commit message with subject in expanded log listing Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Aug 2009 18:03:31 +0200
Add some example filter scripts Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 14:56:23 +0200
Merge branch 'lh/about' Conflicts: cgit.h
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:46:34 +0200
Merge branch 'lh/plugins' Conflicts: cgit.c cgit.h
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:46:01 +0200
Merge branch 'lh/mimetypes'
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:45:36 +0200
Expose file extension in tree lists as class to allow nicer tree styling Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
Martin Szulecki opensuse@sukimashita.com
Fri, 07 Aug 2009 14:06:02 +0200
Introduce noplainemail option to hide email adresses from spambots Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
Martin Szulecki opensuse@sukimashita.com
Fri, 07 Aug 2009 14:05:17 +0200
Merge branch 'lh/embedded' Conflicts: cgitrc.5.txt ui-shared.c
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:29:22 +0200
Merge branch 'ml/head-include'
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:04:08 +0200
Merge branch 'plain-etag' Conflicts: ui-shared.c
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 11:59:22 +0200
Merge branch 'rt/plain-binary' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 11:51:57 +0200
Merge branch 'do/https' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 11:40:25 +0200
Return http statuscode 404 on unknown branch Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Jun 2009 20:43:08 +0200
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 09:32:46 +0100
Fix doc-related glitches in Makefile and .gitignore Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 09:27:54 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 09:06:20 +0100
Merge branch 'asciidoc'
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 09:05:49 +0100
ui-tree: escape ascii-text properly in hexdump view Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 11:26:14 +0100
CGIT 0.8.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 01 Feb 2009 19:31:37 +0100
Use GIT-1.6.1.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 01 Feb 2009 19:30:16 +0100
Merge branch 'lh/binary'
Lars Hjemli hjemli@gmail.com
Sun, 01 Feb 2009 19:29:47 +0100
Merge branch 'lh/header'
Lars Hjemli hjemli@gmail.com
Sun, 01 Feb 2009 19:17:52 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Thu, 29 Jan 2009 22:21:24 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 23:03:05 +0100
Merge branch 'jw/commit-decorations' Conflicts: cgit.css Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 23:00:40 +0100
Merge branch 'og/tree-view-selection' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 20:21:56 +0100
Merge branch 'lh/stats' Conflicts: cgit.c cgit.css cgit.h ui-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 20:16:37 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Mon, 12 Jan 2009 08:57:23 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 22:00:25 +0100
Make all tags viewable Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Robin Redeker elmex@ta-sa.org
Sun, 11 Jan 2009 16:25:01 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 16:38:19 +0100
Change toggle to more meaningful term In the log interface, there is a toggle link at the top, but it isn't clear what's being toggled. I've changed it to "Expand" and "Collapse" to make it clear that you are getting more and less information, respectively. Signed-off-by: Justin Waters <justin.waters@timesys.com>
Justin Waters justin.waters@timesys.com
Fri, 09 Jan 2009 17:35:10 -0500
Merge branch 'snapshot-fixes'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 12:22:46 +0100
Merge branch 'lh/mimetypes'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 12:22:31 +0100
Merge branch 'lh/virtual-root'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 12:22:19 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 12:18:25 +0100
ui-log: show name-decorations in log output Commits are now decorated with a clickable 'label' for each ref pointing at it, similar to how gitweb and gitk displays commit decorations. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 12:16:18 +0100
ui-refs: avoid SEGFAULT on lightweight tags Signed-off-by: Robin Redeker <elmex@ta-sa.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Robin Redeker elmex@ta-sa.org
Sat, 10 Jan 2009 12:44:08 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 06 Jan 2009 21:51:09 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 30 Dec 2008 12:29:50 +0100
Use GIT-1.6.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 26 Dec 2008 11:03:01 +0100
shared.c: future-proof usage of git diff-structures Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 26 Dec 2008 11:02:02 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 12:05:21 +0100
Merge branch 'full-log' Conflicts: cgit.c cgit.h
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 11:37:37 +0100
Merge branch 'lh/sort-repolist'
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 11:35:49 +0100
Merge branch 'snapshot-fixes'
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 11:34:48 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 11:33:05 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Fri, 14 Nov 2008 09:30:28 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Thu, 06 Nov 2008 20:47:19 +0100
Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Thu, 06 Nov 2008 19:18:27 +0100
CGIT 0.8.1
Lars Hjemli hjemli@gmail.com
Sat, 11 Oct 2008 20:22:57 +0200
Merge branch 'stable' * stable: Makefile: enable compilation on uclibc
Lars Hjemli hjemli@gmail.com
Sat, 11 Oct 2008 20:21:17 +0200
ui-snapshot: add dwimmery When downloading a snapshot, the snapshot name will often contain the repo name combined with a tag. This patch tries to exploit this so that the correct revision is downloaded even if no specific revision is specified. PS: this only occurs if neither 'h' nor 'id' is specified in the query- string. PPS: this also fixes a bug which occurs when trying to download a filename with an unsupported suffix: it used to try to print an error message to the user but failed since it didn't prepare the output properly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 11 Oct 2008 20:09:42 +0200
Add cgit_query.nohead flag This flag is set when no HEAD is specified in the querystring. Currently it has no users, but it will be used by ui-snapshot to invoke a DWIM-mode where the revision is extracted from the snapshot name. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 11 Oct 2008 19:05:50 +0200
ui-shared: specify correct css class for summary tab When introducing cgit_summary_link() in 49ecbbdd I forgot to specify the css class. This fixes it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 06 Oct 2008 16:00:42 +0200
CGIT 0.8
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 21:23:39 +0200
ui-summary: use html_url_path() This makes the clone urls be properly escaped. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 21:21:42 +0200
ui-refs: use cgit_tag_link() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 21:19:05 +0200
ui-shared: add cgit_tag_link() This function can be used to generate properly escaped links to the tag page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 21:18:45 +0200
ui-shared: generate proper links in cgit_object_link() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 21:12:08 +0200
ui-shared: use html_url_path() to get properly escaped url in form action When a repo uses an url with e.g. '#' or '?' characters this needs to be properly escaped when used as action in a form tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 19:25:47 +0200
Use GIT-1.6.0.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 19:19:59 +0200
ui-shared: reword the standard page footer Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 19:09:58 +0200
ui-shared: do not print repo name on the "summary" tab Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 19:00:32 +0200
Replace cgitrc with cgitrc.5.txt The new file describes all cgitrc options in a more structured manner then the cgitrc example file and it might also work as the source for a cgitrc man page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 18:55:49 +0200
Merge branch 'lh/escape-urls' * lh/escape-urls: ui-repolist + ui-shared: Use cgit_summary_link() ui-shared.c: add cgit_summary_link() ui-shared.c: use html_url_path() in repolink() html.c: add html_url_path
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 17:16:48 +0200
Merge branch 'lh/escape-urls' * lh/escape-urls: ui-shared.c: use html_url_arg() html.c: add html_url_arg
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 13:13:33 +0200
ui-snapshot.c: specify archiver_args.baselen The struct member was introduces in git commit d53fe8187c38, but the cgit testsuite failed to detect that cgit always generated archives without prefixes, i.e. the result from cgit_repobasename was ignored. This fixes the bug and the testsuite. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 13:13:03 +0200
ui-diff: make diffstat header a link to the full diff When printing a path-filtered diff it wasn't obvious how to get back to the full diff (clicking the 'diff' tab would do this). Making the diffstat heading into a link seems to improve the usability. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 23 Sep 2008 17:54:45 +0200
ui-diff: fix links from diffstat The links in the diffstat is supposed to work as a filter for the diff, but this only worked when a single rev was supplied, i.e. the filtered diff was always against the parent of the specified rev. With this patch it is now possible to use the diffstat as a 'filter menu' for urls like http://hjemli.net/git/cgit/diff/?id=v0.7.2&id2=v0.7.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 23 Sep 2008 17:47:26 +0200
Add LDFLAGS to makefile. This will allow for creating static builds which is useful for chrooted environments. Signed-off-by: Harley Laue <losinggeneration@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Harley Laue losinggeneration@gmail.com
Thu, 18 Sep 2008 21:06:18 -0500
ui-repolist: enable filtering of repos by path If a repo url is specified but no exact match is found in the list of repos the url will now be used as a prefix-filter. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 14 Sep 2008 20:18:10 +0200
Add support for --scan-tree=<path> option to cgit This option makes cgit scan a directory tree looking for git repositories, generating suitable definitions for a cgitrc file on stdout. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 15 Sep 2008 00:07:12 +0200
Teach cgit how to use PATH_INFO This commit makes cgit use the cgi variables SCRIPT_NAME and PATH_INFO when virtual-root is unspecified in cgitrc and no url-parameter is specified on the querystring. This has two nice effects: * Virtual urls works out of the box, no more need for rewrite-rules in httpd. * Virtual urls with special querystring characters are handled correctly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 09 Aug 2008 21:11:41 +0200
Merge branch 'lh/parsing' * lh/parsing: ui-tag: show the taggers email parsing.c: be prepared for unexpected content in commit/tag objects
Lars Hjemli hjemli@gmail.com
Mon, 15 Sep 2008 22:41:25 +0200
Merge branch 'ew/http_host' * ew/http_host: use Host: header to generate cgit_hosturl
Lars Hjemli hjemli@gmail.com
Mon, 15 Sep 2008 21:47:14 +0200
Update Makefile to use GIT-1.6.0.1 When updating the git submodule to 1.6.0.1 (and 1.6.0), the Makefile was left behind. This fixes it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 03 Sep 2008 00:18:09 +0200
Use GIT-1.6.0.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 02 Sep 2008 01:06:27 +0200
ui-plain: handle subdirectories The callback from read_tree_recursive just needs to check the type of each tree entry; if it's a dir we want to continue scanning, if it's a regular file we'll assume it's the one we requested. And while at it, remove some stray fprintfs. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 02 Sep 2008 00:53:04 +0200
Use GIT-1.6.0
Lars Hjemli hjemli@gmail.com
Mon, 01 Sep 2008 22:50:35 +0200
Merge branch 'lh/plain' * lh/plain: Supply status description to html_status() ui-tree: link to plain view instead of blob view Implement plain view
Lars Hjemli hjemli@gmail.com
Mon, 01 Sep 2008 22:40:55 +0200
Merge branch 'lh/clone' * lh/clone: Add support for cloning over http Conflicts: cmd.c
Lars Hjemli hjemli@gmail.com
Mon, 01 Sep 2008 22:40:24 +0200
cache.c: use %zd for off_t argument Signed-off-by: Lars Hjemli <hjemli@gmail>
Lars Hjemli hjemli@gmail.com
Sun, 10 Aug 2008 09:24:24 +0200
Use GIT-1.6.0.rc1 Now that rc1 is released as a tarball `make get-git` should start working again. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 19:08:19 +0200
Makefile: Git dependency, take 3 In commit a1266edfe the build instructions for the git libs where moved to their real targets, which in turn depended on the phony target `git`. But since `git` is an actual directory in cgit the git libs wouldn't be recompiled when needed. So with this patch (third time lucky), cgit is declared to depend on the really phony target `libgit` and the build instructions for `libgit` is to unconditionally rebuild git/libgit.a and git/xdiff/lib.a. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 18:52:27 +0200
Merge branch 'lh/atom'
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 09:50:10 +0200
cgitrc: explain new local-time option Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Naewe stefan.naewe@atlas-elektronik.com
Tue, 05 Aug 2008 09:20:07 +0200
Added `local-time` option to cgitrc When `local-time` is set, commit, tag and patch timestamps will be printed in the servers timezone. Also, regardless of the value of `local-time`, these timestamps will now always show the timezone. Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Naewe stefan.naewe@atlas-elektronik.com
Fri, 01 Aug 2008 14:54:38 +0200
Makefile: another take on git dependency rules When building cgit we depend on xdiff/lib.a and libgit.a in the git directory, but the previous attempt on describing this dependency failed since the build instructions for the libs was placed under the phony `git` target. This patch fixes the issue by moving the build instructions to their real targets. It also makes it clear that only the `cgit` target depends on the git binaries (since they're only used during linking). And while at it, the patch also cleans up the list of phony targets. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 01 Aug 2008 01:25:51 +0200
Modify default value for a few cgitrc options The default max-length used when printing commit messages and repo descriptions can be increased due to the new layout (no sidebar). Also, on the repo summary page I believe it makes sense to only show the ten most recent branches and tags by default, just as it makes sense to show the ten most recent commit messages for the active branch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 27 Jul 2008 12:58:37 +0200
Be prepared for empty repositories Before this patch, cgit would segfault on repositories with no refs. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 27 Jul 2008 12:32:08 +0200
ui-shared: show repo owner along with description Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 27 Jul 2008 12:22:16 +0200
ui-summary: show clone urls If either repo.clone-url or clone-prefix is specified in cgitrc, all space-separated values in the config option is printed as a possible clone url on the repo summary page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 27 Jul 2008 11:54:06 +0200
Makefile: remove the `distclean` and `emptycache` targets The `distclean` was hardly useful while the `emptycache` was actively harmful. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 Jul 2008 20:06:16 +0200
Makefile: do not touch the git objects with `make clean` I've been avoiding `make clean` for a long time due to its eagerness to kill all the git objectfiles. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 Jul 2008 19:58:37 +0200
Makefile: fix git dependency rules The objectfiles depends unconditionally on some specific git binaries while those git binaries depends on the phony `git` target and this patch seems to get these dependencies spelled out correctly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 Jul 2008 19:30:06 +0200
tests/Makefile: not everyone has `.` in $PATH Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 Jul 2008 19:01:31 +0200
Adjust to new calling convention for read_tree_recursive() In GIT-1.6.0, read_tree_recursive takes an extra void pointer for callback data. We might want to use this to avoid some global variables, but for now lets just make sure that we can still compile. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli larsh@hatman.(none)
Mon, 21 Jul 2008 10:10:48 +0200
Use GIT-1.6.0-rc0
Lars Hjemli larsh@hatman.(none)
Mon, 21 Jul 2008 09:57:25 +0200
Add a favicon option to cgitrc This option is used to specify a shortcut icon on all cgit pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli larsh@hatman.(none)
Sat, 19 Jul 2008 20:40:30 +0200
Add support for including a footer on all pages The new cgitrc option `footer` can be used to include a html-file which replaces the standard 'generated by cgit' message at the bottom of each page. Suggested-by: Peter Danenberg <pcd@wikitex.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 26 Jun 2008 13:53:30 +0200
Merge branch 'master' of git://git.klever.net/patchwork/cgit * 'master' of git://git.klever.net/patchwork/cgit: allow specification of directly linked blobs mimetypes allow blob extract blobs by head/path combination
Lars Hjemli hjemli@gmail.com
Thu, 26 Jun 2008 12:54:44 +0200
Use GIT-1.5.6
Lars Hjemli hjemli@gmail.com
Wed, 25 Jun 2008 17:39:25 +0200
Added root-desc to default configuration. Signed-off-by: Harley Laue <losinggeneration@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Harley Laue losinggeneration@gmail.com
Tue, 20 May 2008 19:08:21 -0500
ui-tree.c: avoid peeking at GITLINK objects When an object in the tree has GITLINK mode-bits we don't need to get any more info about that particular object (and trying to get more info about it will usually generate an annoying warning on stderr since the object typically doesn't exist in the repo anyways). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 20 May 2008 22:32:22 +0200
cache.c: fix error checking in print_slot() The change to print_slot() in cdc6b2f8e7a8d43dcfe0475a9d3498333ea686b8 made the function return correct errno for read errors while ignoring write errors, which is not what was intended. This patch tries to rectify things. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 20 May 2008 17:56:47 +0200
cache.c: do not ignore errors from print_slot() If print_slot() fails, the client will be served an inferior response. This patch makes sure that such an error will be returned to main(), which in turn will try to inform about the error in the response itself. The error is also printed to the cache_log, i.e. stderr, which will make the error message appear in error_log (atleast when httpd==apache). Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 23:59:11 +0200
cache.c: use xread()/xwrite() from libgit These functions handles EINTR/EAGAIN errors during read/write operations, which is something cache.c didn't. While at it, fix a bug in print_slot() where errors during reading from the cache slot might go by unnoticed. Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 23:26:05 +0200
cache.c: make all io-related functions return errno on error We'll need proper return-values from these functions to make the cache behave correctly (which includes giving proper error messages). Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 23:16:50 +0200
cache.c: read(2) returns -1 on error, not 0 Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 23:10:05 +0200
Use GIT-1.5.5.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 21:40:28 +0200
Include commit-id in link from diff-stat This fixes a regression created by fe1230dece81450004d02fa8a470f8dab8f7fdd9, and modifies a test to avoid future regressions. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 21:21:32 +0200
ui-commit: handle root commits Both cgit_print_diff() and cgit_diff_tree() handles root commits nicely, but cgit_print_commit() forgot to check the case of 0 parents. This fixes it, and adds tests to avoid future regressions. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 18 May 2008 21:09:26 +0200
Add link to index page from repo header, remove page name This makes it more obvious how to get back to the index, especially when the config option `logo-link` is used. And the page name displayed in the header provided no extra information. It only consumed space and deserved to die. While at it, make sure that the different parts of the header doesn't wrap when horizontal space is limited. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 May 2008 12:44:20 +0200
Add footer with page creation time and cgit version on all pages Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 May 2008 11:07:41 +0200
Add a pager on the repolist This enables a pager on the repolist which restricts the number of entries displayed per page, controlled by the new option `max-repo-count` (default value 50). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 May 2008 10:54:39 +0200
Add cgit_index_link() function with support for offset This function will be used to build a pager in ui-repolist. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 May 2008 10:37:02 +0200
Merge branch 'lh/cache' * lh/cache: Add page 'ls_cache' Redesign the caching layer
Lars Hjemli hjemli@gmail.com
Sat, 03 May 2008 10:10:07 +0200
Print an error if filename is not found in html_include. Normally when html_include cannot open the file it fails silently and things can be a bit hard to figure out from just looking at apache's log. This will be beneficial for those initially setting up their server with cgit. Signed-off-by: Harley Laue <losinggeneration@aim.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Harley Laue losinggeneration@aim.com
Tue, 29 Apr 2008 17:59:53 +0200
Merge branch 'lh/about' * lh/about: Add 'about site' and 'about repo' pages Prepare for 'about site' page / add 'root-readme' option to cgitrc Make it possible for a single cmd to work both with and without a repo Re-enable 'index-info' and add support for 'root-desc' in cgitrc Move included header-file out of repolist table Prepare for 'about repo' page
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 01:13:08 +0200
ui-diff: remove test on object type By removing the test for commit objects it's now possible to specify a tag name for the id query-string parameter (it already worked for id2). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 Apr 2008 23:40:51 +0200
Integrate diffstat with diff This creates a generic diffstat function in ui-diff, which then is invoked from cgit_print_diff with the result that both commit and diff- view gets a diffstat. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 Apr 2008 23:32:02 +0200
Fix commitdiff annoyance Someone were a bit sloppy when the commitdiff got included 'inline' in commit 89aa3c0d0a4c6d9885272602005975b763ea1604. This patch deletes a stray `)` and makes sure the diffstat summary `<div>` is closed before the full diff is printed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 17 Apr 2008 18:29:50 +0200
Cleanup page header Fix some invalid html, remove dead code. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 Apr 2008 00:00:11 +0200
Fix search in repo index even if caching is enabled The repository index page needed to include the querystring in the cache filename. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 23:07:52 +0200
Make a few more columns in repolist and log view clickable Less mouse movement is nice. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 22:23:48 +0200
Make branches, tags and log play better together in the summary view Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 22:13:38 +0200
Fix more css ugliness Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 22:10:33 +0200
cgit.css: set form margins According to the css2 spec, htmlforms have 1.12em top and bottom margins. That doesn't play well with the placement of the search form, so lets force it to use 0em margins. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 10:17:33 +0200
Fix css font-family When the sidebar was introduced in v0.7 the default font-family property got messed up, but this commit should fix the issue. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 Apr 2008 10:00:59 +0200
Merge branch 'lh/layout' * lh/layout: Make repository search case insensitive Remove 'patch' link from tab, add to commit view Implement minimal freetext search in the repolist More layout fixes Minor fixup in tree-view css Reintroduce the branch switcher Add fixed link to index page from repo header Include diff in commit view Replace sidebar/logo
Lars Hjemli hjemli@gmail.com
Sun, 13 Apr 2008 12:48:44 +0200
Use GIT-1.5.5
Lars Hjemli hjemli@gmail.com
Wed, 09 Apr 2008 18:05:30 +0200
Don't specify mimetype in ui-blob.c But be sure to specify correct filename. This way, the client can hopefully guess a sensible mimetype based on the filename suffix, and cgit can ignore the issue altogether. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 25 Mar 2008 02:43:51 +0100
Merge branch 'lh/cleanup' * lh/cleanup: (21 commits) Reset ctx.repo to NULL when the config parser is finished Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring() Move function for configfile parsing into configfile.[ch] Add cache.h Remove global and obsolete cgit_cmd Makefile: copy the QUIET constructs from the Makefile in git.git Move cgit_version from shared.c to cgit.c Makefile: autobuild dependency rules Initial Makefile cleanup Move non-generic functions from shared.c to cgit.c Add ui-shared.h Add separate header-files for each page/view Refactor snapshot support Add command dispatcher Remove obsolete cacheitem parameter to ui-functions Add struct cgit_page to cgit_context Introduce html.h Improve initialization of git directory Move cgit_repo into cgit_context Add all config variables into struct cgit_context ...
Lars Hjemli hjemli@gmail.com
Tue, 08 Apr 2008 21:29:21 +0200
Use GIT-1.5.5-rc2
Lars Hjemli hjemli@gmail.com
Tue, 01 Apr 2008 00:59:55 +0200
Use GIT-1.5.5.rc1
Lars Hjemli hjemli@gmail.com
Sun, 23 Mar 2008 11:36:38 +0100
Fix segfault in patch view for root commit The code for patch view assumed the current commit would always have a parent, which made cgit segfault when that wasn't the case. This fixes the bug and adds a test-script for patch view which includes a test for the inital commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 17 Mar 2008 23:13:16 +0100
Use GIT-1.5.4.4
Lars Hjemli hjemli@gmail.com
Mon, 17 Mar 2008 22:59:09 +0100
tests/setup.sh: cleanup test script output and logging Log the complete output from each test-script in test-output.log and tell the user about the logfile when a test-script fails. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 24 Feb 2008 19:53:51 +0100
t0010-validate.sh: return on cgit errors The earlier segfault in cgit passed by unnoticed by this test-script due to the pipe between cgit and sed. There might be a more elegant solution to this problem, but my shellscript- foo is weak. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 24 Feb 2008 19:43:46 +0100
Make output from `make test` more readable Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 24 Feb 2008 16:05:58 +0100
Brown paper bag: don't use `grep -v` For some inexplicable reason I'd gotten the semantics of `grep -v` totally backwards, thinking it somehow would make the exitcode from grep indicate the non-match of the specified pattern. This fixes the broken tests and gives me a valuable lession about shell programming at the same time. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 24 Feb 2008 15:35:52 +0100
Add regression-test for description-less repos The segfault fixed in commit eacde43d7184452e1fdc90b982b531f1f5239923 was triggered when the html-functions manipulated string literals. One callpatch which could trigger the bug is in ui-repolist.c when repo descriptions are passed to html_ntxt(): if a repo is lacking a description, the literal string "[no description]" is used. This patch changes test/setup.sh such that the first repo has no description, and adds tests for both "[no description]" and "the bar repo" (description of the other repo) to tests/t0101-index.sh, which should be enought to catch regressions in these functions. Noticed-by: Hiroki Hattori <seagull.kamome@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 24 Feb 2008 15:27:33 +0100
Merge branch 'stable' * stable: Fix segfault Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 23 Feb 2008 20:13:57 +0100
Use GIT-1.5.4.1
Lars Hjemli hjemli@gmail.com
Sat, 16 Feb 2008 11:22:06 +0100
Use GIT-1.5.4
Lars Hjemli hjemli@gmail.com
Sat, 02 Feb 2008 08:55:09 +0100
Use GIT-1.5.4.rc5
Lars Hjemli hjemli@gmail.com
Mon, 28 Jan 2008 21:18:28 +0100
Use GIT-1.5.4.rc4
Lars Hjemli hjemli@gmail.com
Sun, 13 Jan 2008 19:16:23 +0100
Merge branch 'stable' * stable: CGIT 0.7.2 Use GIT-1.5.3.8 Compare string lengths when parsing the snapshot mask Default repo description to "[no description]"
Lars Hjemli hjemli@gmail.com
Sun, 13 Jan 2008 18:34:37 +0100
Check for NULL-subject in patch view While at it, make sure the commit message ends with a '\n'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 18 Dec 2007 08:26:50 +0000
Handle missing default branch and error out on invalid branch names When no branch is specified and the repository does not have a default branch, use the first branch. Also, print sensible errormessages when the repository does not contain any branches and when invalid branchnames are specified. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 04 Jan 2008 13:43:40 +0100
Add plain patch view The new view mimics the output from `git format-patch`, making it possible to cherry-pick directly from cgit with something like `curl $url | git am`. Inspired by a patch to `git-apply` by Mike Hommey: http://thread.gmane.org/gmane.comp.version-control.git/67611/focus=67610 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Dec 2007 21:47:29 +0100
Add support for automatic and custom clone urls This adds support for two new parameters to cgitrc: clone-prefix and repo.clone-url. If clone-prefix is specified, all repos will get a clone url printed in the sidebar; the url is generated by clone-prefix + repo.url. Additionally, each repo can specify repo.clone-url which will override any such auto-generated url. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Dec 2007 01:49:38 +0100
Merge branch 'stable' * stable: Handle missing timestamp in commit/tag objects Set commit date on snapshot contents
Lars Hjemli hjemli@gmail.com
Sun, 02 Dec 2007 22:28:37 +0100
Add cell-spacing in html There are some browsers which don't support the border-spacing property Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 16 Nov 2007 10:28:29 +0100
Use tables for page layout It feels like the Right Thing, and it fixes some rendering problems in a much used webbrowser. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 16 Nov 2007 09:52:03 +0100
Gimp my logo Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 16 Nov 2007 09:51:35 +0100
Add support for "robots" meta-tag With this change, cgit will start to generate the "robots" meta-tag, using a default value of "index, nofollow". The default value can be modified with a new cgitrc variable, "robots". Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 21:57:21 +0100
Generate valid html for "downloads" menu header Noticed-by: http://validator.w3.org Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 13:44:39 +0100
Merge branch 'lh/testsuite' * lh/testsuite: Set commit date on snapshot contents Fix html error detected by test-suite Create initial testsuite
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 13:17:13 +0100
Merge branch 'stable' * stable: CGIT 0.7.1 Makefile install: include cgit.png, do not empty cache Conflicts: Makefile
Lars Hjemli hjemli@gmail.com
Fri, 09 Nov 2007 13:52:48 +0100
Minor css tweaks Don't specify border and background color for input controls, reduce font- size of heading in sidebar. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 09 Nov 2007 13:19:56 +0100
Merge branch 'stable' * stable: Support "/" as virtual-root
Lars Hjemli hjemli@gmail.com
Thu, 08 Nov 2007 12:22:39 +0100
Makefile: link with libiconv if NEEDS_LIBICONV is defined This seems to be needed to compile on cygwin. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 06 Nov 2007 09:35:07 +0100
Merge branch 'iconv-rebased' of http://x2a.org/pub/git/cgit * 'iconv-rebased' of http://x2a.org/pub/git/cgit: Use utf8::reencode_string from git Convert subject and message with iconv_msg. Add iconv_msg function. Set msg_encoding according to the header. Add commit->msg_encoding, allocate msg dynamicly.
Lars Hjemli hjemli@gmail.com
Tue, 06 Nov 2007 00:38:18 +0100
Show lines changed as -n/+m in shortlogs This is way more informative than the total number of changed lines. Suggested-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 06 Nov 2007 00:35:12 +0100
Don't show the the branch selector button if javascript is enabled Suggested-by: Olivier Ramonat <olivier@ramonat.fr> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 14:17:58 +0100
Do not require javascript-enabled clients A simple submit-button is all that's required to make the branch selector drop-down work on any client, so lets add one. Noticed-by: Olivier Ramonat <olivier@ramonat.fr> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 14:05:12 +0100
CGIT 0.7
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 11:35:55 +0100
Use GIT-1.5.3.5 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 11:33:54 +0100
Don't include current SHA1 in 'log' menu-item This ensures that the menu-item always prints the log for the active branch. Predictability is good. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 11:33:28 +0100
Don't include current path in menu links The menu-links are a lot more predictable this way. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 11:23:47 +0100
Fix search form action/hidden fields The search form didn't properly honor the current path, so this commit fixes cgit_fileurl() and add_hidden_formfields() to make the issue go away. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 11:15:56 +0100
Add search parameters to cgit_log_link This makes the [prev] and [next] links work correctly on search results. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Nov 2007 10:42:37 +0100
Fix typo in css Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Shunichi Fuji palglowr@gmail.com
Sat, 03 Nov 2007 09:36:09 +0100
Change the cgit layout This modifies and hopefully improves the layout of all cgit pages: * Remove the header from all pages and replace it with a sidebar; most pages have sufficient width but many needs more height. * Add a dropdown-box to switch between branches, using a one-liner javascript to reload the current page in context of the selected branch. * Include refs found below refs/archives in the sidebar, appearing as a set of menuitems below a 'download' heading. * Include the brand new cgit logo Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 30 Oct 2007 10:47:38 +0100
Add config param 'index-info' This parameter will be used to include a html file in the upcoming sidebar on the index page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 30 Oct 2007 10:39:59 +0100
Teach cgit_object_link() about tag objects This makes random tag links more helpfull, e.g. when a branch head references a tag object, link to the tag page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Oct 2007 15:40:47 +0100
Make print_branch() handle refs not pointing at commits The master branch of stable/linux-2.6.20 currently references a tag object, which makes print_branch() die with a segfault. This teaches print_branch() to handle such cases more gracefully. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Oct 2007 15:36:18 +0100
Teach log search about --grep, --author and --committer This makes the log searching more explicit, using a dropdown box to specify the commit field to match against. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Oct 2007 15:23:00 +0100
Add html_option() function This is a generic function used to output html "option" tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Oct 2007 12:08:45 +0100
Merge branch 'stable' * stable: cgit_parse_commit(): Add missing call to xstrdup()
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 13:55:44 +0200
Cleanup code introduced by the filter-refs topic The functions used to print branches and tags were only half-done and somewhat confused. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 13:34:17 +0200
Merge branch 'filter-refs' * filter-refs: Add links to the new refs page from summary page Add support for refs view Make cgit_print_branches()/cgit_print_tags() external Add descriptions of summary-branches and summary-tags to cgitrc Add support for config param summary-branches Move logic for age comparision from cmp_tag_age into cmp_age() Add support for config param summary-tags Sort tags by age Use reflist to print tag info Use reflist to print branch info Add functions and types for ref lists
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:55:10 +0200
Merge branch 'stable' * stable: Skip unknown header fields when parsing tags and commits
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 09:15:41 +0200
Merge branch 'stable' * stable: correct typo in CSS
Lars Hjemli hjemli@gmail.com
Fri, 05 Oct 2007 16:20:13 +0200
Merge branch 'stable' * stable: Use git-1.5.3.3
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:51:04 +0200
cgit.css: make diff headers more visible This modifies the background color of diff headers to make them easier to spot. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:41:29 +0200
ui-diff: add links to pre- and postversion of blobs Each diff header now links to the old and new version of each file Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:30:29 +0200
gen-version.sh: don't sed the output from git describe Replacing '-' with '.' makes the version name slightly confusing, so lets stick with the unmodified output of git describe. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:01:51 +0200
css: remove the annoying tr:hover rule for diffstat Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:09:07 +0200
ui-commit.c: link to diff instead of tree from diffstat This makes each entry in the diffstat link to a path-restricted diff. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 11:54:01 +0200
Add prefix parameter to cgit_print_diff() This allows a diff to be restricted to the path prefix specified in the url. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 11:46:38 +0200
Add prefix parameter to cgit_diff_tree() This paramter can be used to restrict a diff to the specified path prefix. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 11:42:19 +0200
Add support for a renamelimit option in cgitrc This option can be used to override the default rename-limit in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Sep 2007 23:52:30 +0200
cgit v0.6.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 01:04:54 +0200
Upgrade to GIT 1.5.3.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 01:03:25 +0200
Use trim_end() to remove trailing slashes All urls and paths read from cgitrc needs to be 'normalized', i.e. get any trailing slashes removed, and the trim_end() function works out nice for this purpose. Removing the trailing slashes also happens to fix the case where the virtual root should be a single slash; that case used to require specifying the full hostname (including the http:// prefix), but now it can simply be specified as /. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 00:56:53 +0200
Remove a few compiler warnings Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 00:21:47 +0200
Add cgit.conf to .gitignore, remove *~ Not having cgit.conf in .gitignore is a bug, while having *~ is a personal preference. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 00:11:03 +0200
ui-tree: show last line of blob The last line in a blob was never printed by ui-tree::print_object(), which was particularly annoying when the blob missed a final newline. This fixes the issue. Noticed-by: <mkraai@beckman.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Sep 2007 00:00:06 +0200
ui-tree: specify parameter position for all htmlf formats The GNU C library manual tells us that behavior is undefined if only some formats has a specification for the parameter position. Noticed-by: <mkraai@beckman.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 19 Sep 2007 23:46:59 +0200
fixed typo in cgitrc Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Fri, 14 Sep 2007 19:28:09 +0200
Improve the sample cgitrc file Added and documented missing cgitrc parameters, improved documentation for virtual-root, added examples for repositories with a working directory. [lh:sligthly modified/extended] Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Chris Pickel sfiera@macports.org
Sat, 08 Sep 2007 19:37:43 -0400
cgit v0.6.2
Lars Hjemli hjemli@gmail.com
Sat, 08 Sep 2007 19:10:37 +0200
Revert part of "Makefile: add support for DESTDIR" This removes my editing on the patch received by Chris Pickel, as I didn't understand the purpose of DESTDIR. Noticed-by: Chris Pickel <sfiera@macports.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 08 Sep 2007 18:42:55 +0200
Revert "Makefile: add missing references to DESTDIR" This reverts commit fa31c5ed4839575c3ef3f6f0823fc2b4af47dbfd, as I totally misunderstood the purpose of DESTDIR. Noticed-by: Chris Pickel <sfiera@macports.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 08 Sep 2007 18:38:10 +0200
cgit v0.6.1
Lars Hjemli hjemli@gmail.com
Sat, 08 Sep 2007 15:53:02 +0200
Makefile: add missing references to DESTDIR When cgit is built it needs to get CGIT_CONFIG and CGIT_CACHE_ROOT prefix with DESTDIR. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 08 Sep 2007 11:59:04 +0200
Make cgit honor CACHE_ROOT as defined in Makefile Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Chris Pickel sfiera@macports.org
Sat, 08 Sep 2007 11:39:44 +0200
Makefile: add support for DESTDIR Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Chris Pickel sfiera@macports.org
Sat, 08 Sep 2007 11:34:11 +0200
cgit v0.6 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 04 Sep 2007 11:54:37 +0200
Update README Add new build instructions, extend the "Missing features" section and add a note about patches/email address of the author. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 04 Sep 2007 11:49:40 +0200
Set xdemitconf_t.findfunc=NULL This function-pointer was introduced in git v1.5.3-rc0-42-gf258475. It needs to have a value, and setting it to NULL triggers the old behaviour for selecting hunk headers. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 04 Sep 2007 11:04:47 +0200
Merge branch 'jo/dirlink' * jo/dirlink: Rename dirlink to gitlink. Conflicts: ui-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Sep 2007 23:00:06 +0200
Use git-1.5.3 as submodule Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Sep 2007 22:58:02 +0200
Delete submodules.sh and prepare for using git-submodule Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Sep 2007 22:54:51 +0200
Makefile: add target "get-git" The new target downloads a suitable git.git tarball from kernel.org and unpacks it in the git directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Sep 2007 22:42:54 +0200
Rewrite the makefile + gen-version.sh The old files were simply broken, hopefully the new ones will work out somewhat better. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Sep 2007 21:52:14 +0200
ui-snapshot: whitespace/formatting cleanup Introduce a #define for number of snapshot archive entries, move all decls to function entrypoint, remove some trailing whitespace and reformat a few lines. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 23 Jul 2007 22:51:45 +0200
Make ui-tag.c generate valid xhtml Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 23 Jul 2007 01:42:49 +0200
Add support for line number in url fragment With this change, urls like http://hjemli.net/git/cgit/tree/ui-tree.c#43 can be used to jump directly to the specified line number. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 23 Jul 2007 00:46:15 +0200
cgit_print_snapshot_links: use url to specify snapshot name Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 23 Jul 2007 00:11:15 +0200
Merge branch 'master' of git://git.klever.net/patchwork/cgit * 'master' of git://git.klever.net/patchwork/cgit: link raw blob from tree file view fix: changed view link to blob in summary. allow selective enabling of snapshots shorten snapshot names to repo basename introduce cgit_repobasename added snapshot filename to the link add plain uncompressed tar snapshort format introduced .tar.bz2 snapshots compress .tar.gz using gzip as a filter added a chk_non_negative check css: adjust vertical-align of commit info th cells add support for snapshot tarballs Conflicts: ui-summary.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 Jul 2007 23:57:48 +0200
Add ui-tag.c This file implements the tag-command, i.e. printing of annotated tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 22 Jul 2007 23:42:55 +0200
make gen-version.sh run even if . is not in PATH Signed-off-by: Michael Krelin <hacker@klever.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Michael Krelin hacker@klever.net
Mon, 02 Jul 2007 02:29:11 +0200
make config adjustable via env variable CGIT_CONFIG Signed-off-by: Michael Krelin <hacker@klever.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Michael Krelin hacker@klever.net
Mon, 02 Jul 2007 02:29:12 +0200
Merge branch 'lh/menu' * lh/menu: Add ofs argument to cgit_log_link and use it in ui-log.c Add trim_end() and use it to remove trailing slashes from repo paths Do not include current path in the "tree" menu link Add setting to enable/disable extra links on index page Change S/L/T to summary/log/tree Change "files" to "tree" Include querystring as part of cached filename for repo summary page Add more menuitems on repo pages
Lars Hjemli hjemli@gmail.com
Fri, 29 Jun 2007 20:32:08 +0200
Add version info from git-describe A new script, gen-version.sh, is now invoked from 'make version' to generate the file VERSION. This file contains a version identifier generated by git-describe and is included in the Makefile. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 18 Jun 2007 09:42:10 +0200
Add cgit_diff_link() This adds a new function used to generate links to the diff page and uses it everywhere such links appear (expect for single files in the diffstat displayed on the commit page: this is now a link to the tree page). The updated diff-page now expects zero, one or two revision specifiers, in parameters head, id and id2. Id defaults to head unless otherwise specified, while head (as usual) defaults to repo.defbranch. If id2 isn't specified, it defaults to the first parent of id1. The most important change is of course that now all repo pages (summary, log, tree, commit and diff) has support for passing on the current branch and revision, i.e. the road is now open for a 'static' menu with links to all of these pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 18:12:03 +0200
ui-commit: use cgit_commit_link() for parent links This replaces the old cgit_pageurl() function with the brand new cgit_commit_link() function, making parent links in commit view preserve the current branch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 15:44:22 +0200
ui-log: honor id=sha1 on querystring This teaches ui-log to prefer id=sha1 and fallback to h=rev if no id- parameter is specified. With this change, summary, log, commit and tree views now passes current branch using h parameter and current revision using id parameter. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 14:58:45 +0200
Add cgit_commit_link() + support for id=sha1 to commit view This adds a function to generate links to the commit page and extends said page to use id from querystring as primary revision specified (fallback to h). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 14:53:02 +0200
Add git_log_link() and fix bug in generic repolink function The generic repolink function compared head with cgit_query_head, which almost always would be the same pointer. The test now compares with repo.defbranch, which is the wanted behavour. Bug discovered while adding cgit_log_link(), so this commit also contain that change. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 13:57:51 +0200
ui-tree: html/css cleanup Various fixes to make html and css more "clean". The only visible change is the link to file/directory log: it is now printed as "L" (for Log) instead of "H" (for History). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 13:17:00 +0200
ui-shared: use strcmp() to compare strings Somehow a couple of pointer comparisions crept into the new repolink() and cgit_tree_link() functions. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 12:58:59 +0200
Add and use cgit_tree_link() This creates a new function used to generate links to 'tree' page and uses the function everywhere a link to the 'tree' page is generated. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Jun 2007 01:23:08 +0200
ui-tree: make blob viewer generate valid html A leftover '</td></tr>' made ui-tree generate invalid html for blob content. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Jun 2007 21:35:58 +0200
ui-tree: unify with ui-view, use path to select tree/blob This teaches ui-tree to show both trees and blobs, thereby making ui-view superfluous. At the same time, ui-tree is extended to honour the specified path instead of requiering a tree/blob sha1.
Lars Hjemli hjemli@gmail.com
Sat, 16 Jun 2007 20:20:42 +0200
cgit.css: make it validate This fixes a few validation-issues in the css. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 07 Jun 2007 00:43:07 +0200
ui-diff: close td/tr/table properly The previous commit fixed the diff-view when two trees where specified on the querystring (sha1/sha2) but made the generated html invalid when only a commit sha1 is specified. This fixes it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Jun 2007 23:02:40 +0200
ui-diff: emit table/tr/td at better locations This fixes a bug which made the diff-link for each parent of a commit output a diff without correct styles. It also adds an error-message if the head commit specified on the querystring isn't a valid commit object. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 05 Jun 2007 11:44:47 +0200
Implemented configurable HEAD shortlog on summary page. This mirrors similiar functionality in gitweb. After clicking on project on projectlist you will immediatelly see quick summary of last N commits on HEAD. [lh: changed from HEAD to cgit_query_head] Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 03:33:41 +0200
Check for NULL commit buffer in cgit_parse_commit() This can be NULL, so try not to segfault. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 03:27:49 +0200
Add option to disable pager to cgit_print_log(). This is needed for upcomming shortlog on summary page patch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 03:26:14 +0200
Handle single-line and empty commit subjects If commit object ends with \0 after subject line, then info->subject was not set. This commit fixes this and also sets subject to ** empty ** if it would otherwise be empty, so that there is something to click on. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 02:19:38 +0200
Use & instead of & in URLs. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 01:15:10 +0200
Fixed unexpected tags in html output. At least those that were catched by tidy. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ondrej Jirman ondrej.jirman@zonio.net
Sat, 26 May 2007 01:14:25 +0200
cgit v0.5 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 May 2007 00:18:16 +0200
Bad html: it's nice to add alt-attributes Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 May 2007 00:08:36 +0200
Bad html: <form> should have an action-attribute Don't know how the href-attribute got in there... Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 May 2007 00:06:25 +0200
Close a <tr> properly No reason to generate illegal html. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 24 May 2007 00:02:18 +0200
Add repo.readme parameter This parameter can be used to specify a repo-specific includefile, which will then be printed on the summary page for the repo. If the parametervalue is a not an absolute path, it is taken to be relative to repo.path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 23 May 2007 22:46:54 +0200
Remove unused variable from ui-repolist.c:read_agefile() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 23 May 2007 19:22:20 +0200
Show time since last change on index page When creating the index page, an optional file can be scanned per repository to obtain a timestamp for last modification within the repo. If such a file cannot be found, st_mtime for repo.defbranch is used instead. This information is then printed in a new column, "Idle", using the new function cgit_print_age(). The new parameter "repo.agefile" can be used to specify (globally) a relative path to scan (default value is "info/web/last-modified"). The content of the "last-modified" file can be generated by the post-receive hook with a command like this: git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ --count=1 > $GIT_DIR/info/web/last-modified Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 May 2007 23:25:25 +0200
Use cgit_print_age() on summary and log pages Update the pages to show relative dates instead of yyyy-mm-dd hh:mm:ss Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 May 2007 23:15:36 +0200
Add cgit_print_age() function This function can be used to print relative dates, just as in gitweb. Next step will be to actually use the new function. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 22 May 2007 23:08:46 +0200
css: make column headings bold Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 21 May 2007 00:29:11 +0200
Make frontpage friendlier This is an attempt to make the index page more usable by changing how repo groups and repo links are displayed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 21 May 2007 00:14:28 +0200
Merge branch 'repogroups' * repogroups: Adjust apperance of repogroup headers Don't highlight repogroup headings Teach cgit how to group repositories by category
Lars Hjemli hjemli@gmail.com
Sun, 20 May 2007 22:13:17 +0200
Merge branch 'virtual-url' * virtual-url: Don't be fooled by trailing '/' in url-parameter cache_safe_filename() needs more buffers Enable url=value querystring parameter Add lookup-function for valid repo commands Move cgit_get_repoinfo into shared.c
Lars Hjemli hjemli@gmail.com
Sun, 20 May 2007 22:09:55 +0200
Merge branch 'index-header' * index-header: Teach cgit howto include an external file on index page. Add html_include()
Lars Hjemli hjemli@gmail.com
Sun, 20 May 2007 14:33:59 +0200
Use git-1.5.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 20 May 2007 13:14:36 +0200
Remove unused extern declarations from cgit.h Some unused declarations from the early days of cgit are removed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 22:50:11 +0200
Add knobs to enable/disable files/lines changed in log view These columns can cause lots of IO on the server, so add settings to explicitly enable them. Also, add per repo settings to optionally disable the columns if sitewide enabled. While at it, do not allow repo.snapshot to enable snapshots if the global setting is disabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 13:55:52 +0200
Restrict length of repo description on repolist page If any repo has a very long description, all repos suffer since the repo-links in the right-most column gets pushed out of sight. Fix it by introducing max-repodesc-length parameter in cgitrc, and default to 60 chars. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 10:45:45 +0200
Don't die when diffing trees with subprojects The subprojects needs special handling, since they refer to objects which normally won't exist in the refering repository. Fix some extended header bugs and missing features while at it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 04:21:06 +0200
Do not wrap filemode column in diffstat table The diffstat looks rather ugly when the filemode is wrapped to one char per line, so lets force it to not wrap. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 03:30:57 +0200
Add C D L and T links to index page These are of course Commit, Diff, Log and Tree pages, all accessed w.o. specifying refname or sha1. Sadly, the layout is neither pretty nor accessible. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 02:12:06 +0200
Make git_pageurl handle NULL querystrings This is suddenly useful after the repo.defbranch-related changes. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 02:06:28 +0200
Add support for tree listing via h parameter This makes the tree page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 01:38:02 +0200
Add link to commitdiff below diffstat This link is a lot easier to locate than the links to the right of the parent entries. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 01:16:56 +0200
Add support for commitdiff via h parameter The commitdiff will be generated against the first parent, and the diff page also gets the benefit of repo.defbranch. Cleaned up some bad whitespace in cgit.h while at it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 00:58:35 +0200
Change commit-view to expect h parameter, not id The change makes the commit-page benefit from repo.defbranch. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 00:26:23 +0200
Enable default value for head parameter Pages which expect head to be specified in the querystring can now be given a default value, configurable per repository (via repo.defbranch, which defaults to "master"). Currently, only the log page actually works without parameters, but the defbranch is bound to be exploited. This also removes some dead code from shared.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 16 May 2007 00:14:51 +0200
Restrict deep nesting of configfiles There is no point in restricting the number of included config- files, but there is a point in restricting the nestinglevel of configfiles: to avoid recursive inclusions. This is easily achieved by decrementing the static nesting-variable upon exit from cgit_read_config(). Also fix some whitespace breakage. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 23:28:40 +0200
Include cgit.conf in Makefile This allows persistent overrides of Makefile settings without touching the Makefile. Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 18:38:31 +0200
ui-diff: show /dev/null as filename for add/delete The diff headers showed an invalid filename when a patch created or deleted a file. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 09:27:27 +0200
Use tables and css to create the diffstat graph, fix scaling There was no need to use image-files for the graphs, so lets drop them. At the same time, fix scaling of the graphs so that the full width is used only if atleast 100 LOC are changed in one of the files. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 02:13:11 +0200
Do not alter incoming sha1 when handling the download refs. The code used to overwrite the const sha1 parameter just to avoid declaring an extra variable. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 01:05:39 +0200
Don't hardcode urls when SCRIPT_NAME is available Also, let the makefile define the name of the installed cgi and use that definition as a default value for cgit_script_name variable. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 00:48:31 +0200
ui-shared.c: fix whitespace breakage Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 00:22:03 +0200
Show tag heading even if first tag is of the lightweight kind The tag printing code waited for valid tags before printing the table heading, but forgot to count unannotated tags. This fixes it. Noticed by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 15 May 2007 00:07:37 +0200
Specify static storage class for file-local declarations Also fix some whitespace issues while at it. Noticed by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 23:58:29 +0200
Add include-parameter to config files This parameter can be used to include another config-file, like a standalone repository listing. Suggested in a patch by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 23:40:33 +0200
Let makefile override the configfile location Pass CGIT_CONFIG from makefile during build, to enable stuff like make CGIT_CONFIG=/var/cgit/cgit.conf Noticed by Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 23:09:49 +0200
cgit.c: fix whitespace breakage
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 22:58:01 +0200
cgit.css: try to make diffs look a little bit nicer This makes the diffview look more like 'git-diff' in a terminal. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 18:31:05 +0200
cgit.css: try do make diffstat a little bit nicer I'm still no webdesigner, but this seems to be a more pleasant "visual experience". Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 18:08:03 +0200
Add log filtering by path and link to it from tree view This enables path-filtering in log-view, and adds a link per entry in tree-view to show the log for each file/directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 14 May 2007 11:10:59 +0200
cgit v0.4 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 23:28:19 +0200
Add commitdiff between commit and each of it's parent A link is added next to each parent of a commit, leading to the new diff-functionality in ui-diff.c. Also added support for a path-parameter to filelevel diffs accessed via the diffstat. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 23:13:12 +0200
Add graphical diffstat to commit view The diffstat is calculated against the leftmost parent of the commit. This gives nice information for "normal" merges while octopus merges are less than optimal, so the diffstat isn't calculated for those merges. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 22:25:14 +0200
Add max-commit-count parameter to cgitrc This enabled customizing number of commits shown per page in log view. It also changes the default from 100 to 50, mainly due to the more cpu intensive log pages (number of files/lines changed) but also since 100 log messages requires excessive scrolling. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 17:15:06 +0200
Show number of changed lines in log view Use the new file-diff interface to calculate number of changed lines per commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 17:03:27 +0200
Simplify ui-diff.c using the new file-level diff interface Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 14:21:46 +0200
Add standard interface for file diff functions Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 14:21:19 +0200
Show number of changed files in log view This uses the new tree-diff functions to calculate number of files changed per commit. Also fix some whitespace issues. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 11:27:46 +0200
Use standard tree-diff function when showing diffstat for single commit Remove unneeded code from ui-commit.c and replace with call to standard diff-functions. Also fix some whitespace issues. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 11:26:23 +0200
Add shared diff-handling functions This adds a standard interface for tree diffing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 May 2007 11:24:23 +0200
css: fix bad rendering in Internet Explorer The layout-tables used border-collapse:separate, which maked all pages look really bad in IE. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 May 2007 00:29:37 +0200
Add links to enable downloading of tagged blobs All tags below refs/archives are shown on the repo summary page as download links. The links referes to the tagged objects, using the tag name as filename for download. This can be used to add shortcuts for release tarballs, documentation and other blobs stored in the object database, especially blobs that are not reachable during cloning. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 11 May 2007 23:44:42 +0200
Makefile: add support for building w.o. preinstalled git Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 11 May 2007 20:41:14 +0200
Tag release v0.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 11 May 2007 12:15:44 +0200
Update README with submodule build info Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 11 May 2007 12:13:15 +0200
Add submodule links in tree listing When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 11 May 2007 12:12:48 +0200
Add submodules.sh and use it during builds This adds a shell script which can be be used to initialize, list and update submodules in a git repository. It reads the file .gitmodules to find a mapping between submodule path and repository url for the initial clone of all submodules. The script is used during cgit builds to enable automatic download and checkout of the git git repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 10 May 2007 11:25:12 +0200
Added git as a submodule This commit adds the subdirectory 'git' as a submodule containing the git git repository, but doesn't add support for automatically cloning the submodule. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 10 May 2007 08:50:49 +0200
Add support for downloading single blobs Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 09 May 2007 00:48:09 +0200
ui-view: show pathname if specified in querystring Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 08 May 2007 23:52:56 +0200
Update to libgit 1.5.2-rc2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 08 May 2007 22:40:59 +0200
Layout update
Lars Hjemli hjemli@gmail.com
Sat, 17 Feb 2007 13:46:18 +0100
Make snapshot feature configurable Snapshots can now be enabled/disabled by default for all repositories in cgitrc with param "snapshots". Additionally, any repo can override the default setting with param "repo.snapshots". By default, no snapshotting is enabled. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 08 Feb 2007 14:47:56 +0100
Add support for snapshots Make a link from the commit viewer to a snapshot of the corresponding tree. Currently only zip-format is supported. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 08 Feb 2007 13:53:13 +0100
cgit v0.2 Main changes since v0.1: -list tags in repo summary -allow search in log-view -read repository paths from cgitrc Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 05 Feb 2007 00:21:06 +0100
Add support for prefix and gitsrc arguments to 'make' This should improve the installation a little, especially since the new options are mentioned in the README. Also, add a make-rule to build the git binaries if necessary + a dependency between cgit and libgit.a. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 04 Feb 2007 23:57:34 +0100
Update cgitrc template Make the descriptions more helpfull. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 04 Feb 2007 23:24:08 +0100
Add support for lightweight tags There is nothing bad about a tag that has no tag-object, but the old code didn't handle such tags correctly. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 04 Feb 2007 22:55:19 +0100
Read repo-info from /etc/cgitrc This makes cgit read all repo-info from the configfile, instead of scanning for possible git-dirs below a common root path. This is primarily done to get better security (separate physical path from logical repo-name). In /etc/cgitrc each repo is registered with the following keys: repo.url repo.name repo.path repo.desc repo.owner Note: *Required keys are repo.url and repo.path, all others are optional *Each occurrence of repo.url starts a new repository registration *Default value for repo.name is taken from repo.url *The value of repo.url cannot contain characters with special meaning for urls (i.e. one of /?%&), while repo.name can contain anything. Example: repo.url=cgit-pub repo.name=cgit/public repo.path=/pub/git/cgit repo.desc=My public cgit repo repo.owner=Lars Hjemli repo.url=cgit-priv repo.name=cgit/private repo.path=/home/larsh/src/cgit/.git repo.desc=My private cgit repo repo.owner=Lars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Feb 2007 15:02:55 +0100
Do not die if tag has no message Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Feb 2007 16:11:41 +0100
Fix search for non-virtual urls When cgit don't use virtual urls, the current repo and page url parameters must be included in the search form as hidden input fields. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 03 Feb 2007 13:08:21 +0100
Update README with install/config information Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Jan 2007 13:18:23 +0100
Add template for /etc/cgitrc This doubles as documentation of the parameteres :) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Jan 2007 12:52:14 +0100
Add parameter to adjust max message length in log listings The parameter "max-message-length" can be specified in cgitrc, default value is 60. This affects the log message shown in repo summary and shortlog. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Jan 2007 12:17:03 +0100
Set explicit font size This might be bad style, but cgit really needed smaller fonts. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Jan 2007 12:01:21 +0100
Change global document layout Use a document-wide table for the main layout Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli larsh@slaptop.hjemli.net
Sun, 28 Jan 2007 11:33:55 +0100
Unified install path Install all files into single directory Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli larsh@slaptop.hjemli.net
Sun, 28 Jan 2007 11:31:57 +0100
Cleanup table listings Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli larsh@slaptop.hjemli.net
Sun, 28 Jan 2007 00:39:26 +0100
Enable building with debuginfo Add -g to CFLAGS when running make with DEBUG=1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 17 Jan 2007 01:13:05 +0100
Extend repo summary with tag list Show all tags in the repo below the branch list. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 17 Jan 2007 01:10:39 +0100
Add function cgit_parse_tag() Teach cgit how to extract author info from a tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 17 Jan 2007 01:09:51 +0100
Add some more decls from git (cache.h, tag.h) This is in preparation for extended tag support in cgit Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 17 Jan 2007 01:07:31 +0100
Handle empty/malformed commit messages An empty commit message would trigger a segfault in the current cgit_parse_commit(). Also, make sure that all char-pointers are properly initialized.
Lars Hjemli hjemli@gmail.com
Tue, 16 Jan 2007 18:41:01 +0100
WIP: add paths/backlinks to tree/blobview
Lars Hjemli hjemli@gmail.com
Fri, 12 Jan 2007 00:46:17 +0100
Remove troublesome chars from cachefile names Add a funtion cache_safe_filename() which replaces possibly bad filename characters with '_'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 12 Jan 2007 00:24:35 +0100
Move cache_prepare() to cgit This moves some cgit-specific stuff away from cache.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 12 Jan 2007 00:00:15 +0100
Use long instead of int when converting from TTL to seconds Just to be really, really sure about embarrasing overflow settings Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli larsh@hal-2004.(none)
Fri, 05 Jan 2007 18:20:23 +0100
Use TTL-settings even in nocache mode In nocace mode an uninitialized ttl-setting was used to generate http-Expires header. Fix it. Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli larsh@hal-2004.(none)
Fri, 05 Jan 2007 18:18:58 +0100
Handle %xx encoding in querystring Convert valid %xx expressions in querystring to ascii, ignore invalid expressions (i.e. eat the three characters %xx). Signed-off-by: Lars Hjemli <larsh@hal-2004.(none)>
Lars Hjemli larsh@hal-2004.(none)
Thu, 04 Jan 2007 16:53:03 +0100
Handle '+' in querystring Translate '+' to ' ' in querystring parser (still doesn't handle %xx) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 28 Dec 2006 02:51:46 +0100
Add basic log filtering This enables case-insensitive grep on logentris using the new search box Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 28 Dec 2006 02:45:28 +0100
Add generic support for search box in page header This adds the ability to show a search box in any pageheader with correct href and hidden form data, but does not enable the box on any pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 28 Dec 2006 02:01:49 +0100
Test for NULL-pointers in html_txt() and friends Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 28 Dec 2006 01:54:43 +0100
Minor style fixes Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 22 Dec 2006 01:44:32 +0100
Add missing diff-link in ui-commit.c Gaah. This should have been a part of 36aba00273e7af1b94bf8c5dd5068709d983d01e Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 22 Dec 2006 01:38:37 +0100
Only show first 80 characters of commit subject in log and summary Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 22 Dec 2006 00:58:18 +0100
Add missing ttl-options in config Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 22 Dec 2006 00:56:02 +0100
cgit 0.1 With a working diff, it really has all the basics. Next steps will be to make it more usable and less ugly :) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 21 Dec 2006 00:53:03 +0100
Let make know that ui-diff.c depends on xdiff.h Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 21 Dec 2006 00:47:05 +0100
Add basic diff view Finally, xdiff is used to show per-file diffs via commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 20 Dec 2006 22:48:27 +0100
Use html_filemode in ui-tree.c No reason to show "100644" when we can show "-rw-r--r--" Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Dec 2006 23:55:53 +0100
Don't show new and old filemode for added/removed files It gives us no extra info whatsoever to show "----------" for either new or old mode, it's just noise (especially since we now show the "old" filemode for deleted files) Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Dec 2006 23:30:55 +0100
Show list of modified files in ui-commit.c Compare current commit with 1.parent, and for each affected file display current filemode, old filemode if changed, current filename and source filename if it was a copy/rename. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 17 Dec 2006 23:07:28 +0100
Reformat code to avoid excessive line lengths Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 19:35:31 +0100
Add cgit_free_commitinfo() and use where needed Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 14:58:20 +0100
Simplify ui-commit.c Replace the call to lookup_commit() with a call to lookup_commit_reference, since it handles reading and parsing of the commit object internally. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 14:46:05 +0100
Show emails and timestamps in ui-commit.c Use the extra info found in commitinfo struct when generating commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 14:28:26 +0100
Teach commit parser about author/committer email + timestamp We want all four of these when showing a commit, so save them in the commitinfo struct. Btw: There's probably no good reason to save committer timestamp since it's already available in commit->date. But it doesn't hurt us either, and it makes the parser look more complete, so we just do it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 14:25:41 +0100
Allow relative paths for cgit_cache_root Make sure we chdir(2) back to the original getcwd(2) when a page has been generated. Also, if the cgit_cache_root do not exist, try to create it. This is a feature intended to ease testing/debugging. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 13:55:58 +0100
Add cache-root option to /cgit/rc Somehow, this option was forgotten when parsing the configfile. Add it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 13:43:01 +0100
Add argument parsing + switch for uncached operation This adds support for the following options to cgit: --root=<path> --cache=<path> --nocache --query=<querystring> --repo=<reponame> --page=<pagename> --head=<branchname> --sha1=<sha1> --ofs=<number> 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 <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 13:33:32 +0100
Add head comment to shared.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 01:14:01 +0100
Add head comment to ui-commit.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 01:11:55 +0100
gitweb ripoff: set tr:hover to highligt current row Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 01:00:12 +0100
Make repo header a link to summary page Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 00:49:37 +0100
Move cgit_print_date into ui-shared, reuse in ui-summary Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 00:33:28 +0100
Add ui-commit.c + misc ui cleanups Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Dec 2006 00:19:56 +0100
Add a common commit parser Make a better commit parser, replacing the ugly one in ui-log.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 15 Dec 2006 18:17:36 +0100
Add simple pager to log page Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 14 Dec 2006 00:40:34 +0100
Add separate makefile-rule to clear current cache Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 13 Dec 2006 14:39:41 +0100
Remove implementation details from README Let README describe the "bigger picture" instead. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 13 Dec 2006 02:06:29 +0100
Small layout adjustments to summary and blob view Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 13 Dec 2006 00:36:22 +0100
Add display of tree content w/ui-tree.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 13 Dec 2006 00:13:27 +0100
cache_lock: do xstrdup/free on lockfile Since fmt() uses 8 alternating static buffers, and cache_lock might call cache_create_dirs() multiple times, which in turn might call fmt() twice, after four iterations lockfile would be overwritten by a cachedirectory path. In worst case, this could cause the cachedirectory to be unlinked and replaced by a cachefile. Fix: use xstrdup() on the result from fmt() before assigning to lockfile, and call free(lockfile) before exit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 12 Dec 2006 10:16:41 +0100
Don't truncate valid cachefiles An embarrassing thinko in cgit_check_cache() would truncate valid cachefiles in the following situation: 1) process A notices a missing/expired cachefile 2) process B gets scheduled, locks, fills and unlocks the cachefile 3) process A gets scheduled, locks the cachefile, notices that the cachefile now exist/is not expired anymore, and continues to overwrite it with an empty lockfile. Thanks to Linus for noticing (again). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 22:53:50 +0100
Move global variables + callback functions into shared.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 17:25:41 +0100
Move functions for generic object output into ui-view.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 17:12:26 +0100
Move log-functions into ui-log.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 17:04:19 +0100
Move repo summary functions into ui-summary.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 16:55:07 +0100
Move functions for repolist output into ui-repolist.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 16:48:03 +0100
Move common output-functions into ui-shared.c While at it, replace the cgit_[lib_]error constants with a proper function Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 16:38:30 +0100
Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 16:11:40 +0100
Avoid infinite loops in caching layer 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>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 12:10:12 +0100
Let 'make install' clear all cachefiles Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 11:23:05 +0100
Fix cache algorithm loophole This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 11 Dec 2006 09:57:58 +0100
Add version identifier in generated files Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 10 Dec 2006 23:50:16 +0100
Add license file and copyright notices Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 10 Dec 2006 22:41:14 +0100
Add caching infrastructure 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>
Lars Hjemli hjemli@gmail.com
Sun, 10 Dec 2006 22:31:36 +0100
Add .gitignore Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 09 Dec 2006 22:21:43 +0100
Replace useless make rules with generic $(OBJECTS) dependency Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 09 Dec 2006 15:29:05 +0100
Import cgit prototype from git tree This enables basic cgit functionality, using libgit.a and xdiff/lib.a from git + a custom "git.h" + openssl for sha1 routines. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 09 Dec 2006 15:18:17 +0100
Teach cgit howto include an external file on index page. The new parameter index-header can be used to name an external file which will be included verbatim at the top of the index page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 19 May 2007 00:00:25 +0200
Add html_include() This is a function used to include external htmlfiles in cgit- generated pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 23:56:10 +0200
Don't be fooled by trailing '/' in url-parameter cgit_parse_url() didn't check if the path-part of urls contained a real path or just a trailing slash. This made the log-page die since the path filtering supplied an invalid path argument. This fixes it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 13:06:45 +0200
cache_safe_filename() needs more buffers The single static buffer makes it impossible to use the result of two different calls to this function simultaneously. Fix it by using 4 buffers. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 03:54:15 +0200
Enable url=value querystring parameter This makes is possible to use repo-urls like '/pub/scm/git/git.git' and even add path specifications, like '/pub/scm/git/git.git/log/documentation'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 03:00:54 +0200
Add lookup-function for valid repo commands This will be usefull when parsing url arguments. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 00:50:46 +0200
Move cgit_get_repoinfo into shared.c This function will be usefull when parsing url arguments. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 00:47:47 +0200
Adjust apperance of repogroup headers Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 20 May 2007 22:12:54 +0200
Don't highlight repogroup headings Specify class='nohover' to avoid highlighting this row. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 23:17:09 +0200
Teach cgit how to group repositories by category The new parameter 'repo.group' is used to set the repository group for the following repositores. Whenever this parameter changes value, a subheading is generated in the index page (printing the current value of repo.group). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 18 May 2007 22:48:22 +0200
Add ofs argument to cgit_log_link and use it in ui-log.c This fixes a bug in the prev/next links on the log page: when on the default branch the links to prev/next page would contain h=(null). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 29 Jun 2007 20:27:41 +0200
Add trim_end() and use it to remove trailing slashes from repo paths The new function removes all trailing instances of an arbitrary character from a copy of the supplied char array. This is then used to remove any trailing slashes from cgit_query_path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 26 Jun 2007 18:04:31 +0200
Do not include current path in the "tree" menu link When generating the menu links on repo pages the tree link included the current path. This made the link pretty useless whenever the current path was set so this commit just passes NULL instead. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 26 Jun 2007 17:32:03 +0200
Add setting to enable/disable extra links on index page The summary/log/tree links displayed for each repository on the index page lost some of their purpose when the header menu was added, so this commit introduces the parameter 'enable-index-links' which must be set to 1 to enable these links. Suggested-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 19 Jun 2007 00:56:40 +0200
Change S/L/T to summary/log/tree In yet another attempt at better usability, the cryptic S/L/T links are changed to show their full name. Suggested-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 18 Jun 2007 22:12:09 +0200
Change "files" to "tree" This renames the menu link and the shortcut on the repo index page from the strange "files" to the more gittish "tree". Suggested-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 18 Jun 2007 22:06:00 +0200
Include querystring as part of cached filename for repo summary page When adding support for the h parameter to the summary page (passing current branch between pages), the builtin cache returned basically random results for summary page since the cached filename didn't honour the querystring. This fixes the issue for now, but someday it might be worthwhile to generate 'canonical' filenames in the cache for all pages, i.e. something a bit more clever than just including the querystring. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 18 Jun 2007 21:17:24 +0200
Add more menuitems on repo pages In an attempt to get better usability, a set of 'semistatic' menuitems are added to the page header on all pages except the repository index. The menuitems (summary, log, files, commit and diff) honours the current branch and revision. To switch the current branch one can use the branch links on the summary page. The backlink to the repository index page is now available by clicking the static page heading. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 18 Jun 2007 00:18:42 +0200
link raw blob from tree file view Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 19:51:47 +0200
fix: changed view link to blob in summary. might not be the best way, but should suffice for now that view command isn't handled in any way Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 19:35:39 +0200
allow selective enabling of snapshots snapshot configuration parameter now can be a space/slash/comma/colon/semicolon/pipe-separated list of snaphot suffixes as listed in ui-snapshot.c Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 18:00:53 +0200
shorten snapshot names to repo basename Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 15:29:55 +0200
introduce cgit_repobasename that shortens reponame stripping any directories and .git suffixes, that is turning 'dir/repo.git/' or 'dir/repo/.git/' or alikes into mere 'repo'. Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 15:24:07 +0200
added snapshot filename to the link - changed cgit_pageurl into cgit_fileurl with the filename parameter - rewritten cgit_pageurl as a wrapper around cgit_fileurl Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 13:13:40 +0200
add plain uncompressed tar snapshort format time to make available snapshots selectable Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 02:14:35 +0200
introduced .tar.bz2 snapshots - reworked write_tar_gzip_archive to handle arbitrary filter as a write_compressed_tar_archive - reformatted whitespaces in the said function to adhere to common cgit standards - added wrappers around write_compressed_tar_archive for .tar.gz and .tar.bz2 - added a hint for vim to use 8 characters shift width by default Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Sat, 21 Jul 2007 02:05:34 +0200
compress .tar.gz using gzip as a filter
Michael Krelin hacker@klever.net
Fri, 20 Jul 2007 20:58:23 +0200
added a chk_non_negative check
Michael Krelin hacker@klever.net
Fri, 20 Jul 2007 20:56:43 +0200
css: adjust vertical-align of commit info th cells
Michael Krelin hacker@klever.net
Wed, 18 Jul 2007 14:55:40 +0200
add support for snapshot tarballs - reworked cgit_print_snapshot to use a list of supported archivers and pick one for the suffix supplied - moved printing of snaphot links into ui-snapshot and make it iterate through the said list
Michael Krelin hacker@klever.net
Wed, 18 Jul 2007 14:40:03 +0200
Rename dirlink to gitlink. Git changed from dirlink to gitlink in 302b9282c9ddfcc704ca759bdc98c1d5f75eba2f. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Jeffrey C. Ollie jeff@ocjtech.us
Mon, 04 Jun 2007 12:28:56 -0500
Use git-1.5.3.3
Lars Hjemli hjemli@gmail.com
Mon, 01 Oct 2007 12:50:07 +0200
correct typo in CSS
Michael Krelin hacker@klever.net
Fri, 05 Oct 2007 00:21:30 +0200
Skip unknown header fields when parsing tags and commits Both the commit- and tagparser failed to handle unexpected header fields. This adds futureproofing by simply skipping any header we don't know/care about. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 24 Oct 2007 21:14:44 +0200
Add links to the new refs page from summary page If either branches or tags are filtered on the summary page, add a link to refs/heads and/or refs/tags right below the last branch/tag. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:47:44 +0200
Add support for refs view This enables the new urls $repo/refs, $repo/refs/heads and $repo/refs/tags, which can be used to print _all_ branches and/or tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:36:53 +0200
Make cgit_print_branches()/cgit_print_tags() external Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:25:40 +0200
Add descriptions of summary-branches and summary-tags to cgitrc Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:15:54 +0200
Add support for config param summary-branches This parameter can be used to specify max number of branches to show on the summary page (if not all branches will be displayed, the "most idle" branches are the ones to be pruned). The default value for this parameter is 0, which disables the pruning. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:13:42 +0200
Move logic for age comparision from cmp_tag_age into cmp_age() Simple refactoring to enable later filtering of branches based on age. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 10:06:03 +0200
Add support for config param summary-tags This parameter can be used to specify max number of tags to show on the summary page. If not specified, all tags are printed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 25 Oct 2007 10:40:16 +0200
Sort tags by age This adds a function to compare timestamps and then uses it as callback for qsort() before printing out tags. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 25 Oct 2007 20:33:04 +0200
Use reflist to print tag info This updates ui-summary.c to use a reflist instead of for_each_tag_ref(), as a step towards more flexible tag handling (filtering/sorting). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 25 Oct 2007 10:28:15 +0200
Use reflist to print branch info This updates ui-summary.c to use a reflist instead of for_each_branch_ref(), as a step towards more flexible branch handling (filtering/sorting). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 25 Oct 2007 10:13:25 +0200
Add functions and types for ref lists This adds two structs, refinfo and reflist, and functions for building a list of refs. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 25 Oct 2007 09:30:06 +0200
cgit_parse_commit(): Add missing call to xstrdup() It's rather silly to point into random memory-locations. Also, remove a call to strdup() used on a literal char *. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Oct 2007 13:50:18 +0200
Use utf8::reencode_string from git This replaces the iconv-support in cgit with similar functions already existing in git. Signed-off-by: Lars Hjemli <hjemli@gmai.com>
Lars Hjemli hjemli@gmail.com
Mon, 05 Nov 2007 22:27:43 +0100
Convert subject and message with iconv_msg.
Jonathan Bastien-Filiatrault joe@x2a.org
Fri, 26 Oct 2007 18:13:41 -0400
Add iconv_msg function.
Jonathan Bastien-Filiatrault joe@x2a.org
Fri, 26 Oct 2007 18:11:26 -0400
Set msg_encoding according to the header.
Jonathan Bastien-Filiatrault joe@x2a.org
Fri, 26 Oct 2007 18:10:26 -0400
Add commit->msg_encoding, allocate msg dynamicly.
Jonathan Bastien-Filiatrault joe@x2a.org
Fri, 26 Oct 2007 18:09:06 -0400
Support "/" as virtual-root When the virtual-root was a single "/", it would be normalized to NULL due to removal of trailing slashes, which in turn would fool us to belive that we shouldn't generate virtual urls. This makes the "/" normalize to "", effectively allowing virtual urls like http://example.com/projectname to be generated without specifying the full domain name as the virtual root. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 08 Nov 2007 12:20:05 +0100
CGIT 0.7.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 09 Nov 2007 13:51:00 +0100
Makefile install: include cgit.png, do not empty cache The cache-cleaning is potentially dangerous, so lets move it away from the install target. A special emptycache target can be used to run the rm -rf. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 09 Nov 2007 13:47:58 +0100
Set commit date on snapshot contents The testsuite revealed that cgit snapshots don't set any useful timestamp on the files contained in the snapshot. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 13:14:15 +0100
Fix html error detected by test-suite Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 13:04:28 +0100
Create initial testsuite This creates a simple testsuite, heavily inspired by the testsuite in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 00:40:58 +0100
Handle missing timestamp in commit/tag objects When a commit or tag lacks author/committer/tagger timestamp, do not skip the next line in the commit/tag object. Also, do not bother to print timestamps with value 0 as it is close to certain to be bogus. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 02 Dec 2007 22:11:35 +0100
Set commit date on snapshot contents The testsuite revealed that cgit snapshots don't set any useful timestamp on the files contained in the snapshot. Cherry-picked-from: 2ff33a8a0405b420cd75e0e207c7efeecd6f130b Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Nov 2007 13:14:15 +0100
CGIT 0.7.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 10 Jan 2008 13:50:22 +0100
Use GIT-1.5.3.8
Lars Hjemli hjemli@gmail.com
Thu, 10 Jan 2008 13:47:18 +0100
Compare string lengths when parsing the snapshot mask We used to rely on the result from strncmp() without comparing the length of the strings involved. Even worse, any single-character format specifier would enable zip-format due to the optional '.'-prefix since the length of the mask then would become zero. Noticed-by: Evan Martin <sys@neugierig.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 03 Dec 2007 00:39:20 +0100
Default repo description to "[no description]" Otherwise, when you leave out a description for a repository, the NULL default causes cgit to print out titles like "cgit - (null)". Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Evan Martin martine@xen.localdomain
Sun, 02 Dec 2007 14:39:30 -0800
Fix segfault Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Hiroki Hattori seagull.kamome@gmail.com
Sun, 24 Feb 2008 02:57:34 +0900
Reset ctx.repo to NULL when the config parser is finished This global variable is used by the config parsing callback to keep track of the currently configured repository. If it is not reset to NULL when the config parser is finished, and neither `url` or `r` is specified on the querystring, cgit will wrongly consider the last configured repo as selected. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 08 Apr 2008 21:27:12 +0200
Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring() This is a generic http-function. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 08 Apr 2008 21:11:36 +0200
Move function for configfile parsing into configfile.[ch] This is a generic function which wanted its own little object file. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 28 Mar 2008 00:09:11 +0100
Add cache.h The functions found in cache.c are only used by cgit.c, so there's no point in rebuilding all object files when the cache interface is changed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 27 Mar 2008 09:22:13 +0100
Remove global and obsolete cgit_cmd This variable was obsoleted by cmd.c. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 25 Mar 2008 02:00:09 +0100
Makefile: copy the QUIET constructs from the Makefile in git.git These constructs were introduced by Shawn O. Pearce in commit 74f2b2a8d006a49e1be7e30731c2f7365d2741d1. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 25 Mar 2008 01:41:10 +0100
Move cgit_version from shared.c to cgit.c With the matching Makefile change, this makes sure that only cgit.o and cgit proper needs to be rebuildt when VERSION has been modified. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 23:10:59 +0100
Makefile: autobuild dependency rules This uses gcc to generate dependency rules for each `.o` file, based on the corresponding `.c` file, into a new set of `.d` files (which are also defined to depend on the same set of source files as their `.o` files). Result: * all objectfile dependencies are correctly calculated * only the necessary dependencies are recalculated when a sourcefile is updated Inspiration for the build rules: * http://www.gnu.org/software/make/manual/make.html#Automatic-Prerequisites * http://make.paulandlesley.org/autodep.html Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 23:01:44 +0100
Initial Makefile cleanup Sort the list of object files to improve readability/mergeability and remove manual dependency information which will soon be generated automatically. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 20:49:41 +0100
Move non-generic functions from shared.c to cgit.c Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 17:26:08 +0100
Add ui-shared.h This is finally a proper headerfile for the shared ui-functions which used to reside in cgit.h Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 16:50:57 +0100
Add separate header-files for each page/view Yet another step towards removing cgit.h. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 16:38:47 +0100
Refactor snapshot support The snapshot support needs to be split between output- and config-related functions to get the layering between shared.c and ui-*.c right. There is also some codestyle-issues which needs fixing to make the snapshot functions more similar to the rest of the cgit code. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 16:00:27 +0100
Add command dispatcher This simplifies the code in cgit.c and makes it easier to extend cgit with new pages/commands. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 01:09:39 +0100
Remove obsolete cacheitem parameter to ui-functions This parameter hasn't been used for a very long time... Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 01:00:36 +0100
Add struct cgit_page to cgit_context This struct is used when generating http headers, and as such is another small step towards the goal of the whole cleanup series; to invoke each page/view function with a function pointer. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Mar 2008 00:51:19 +0100
Introduce html.h All html-functions can be quite easily separated from the rest of cgit, so lets do it; the only issue was html_filemode which uses some git-defined macros so the function is moved into ui-shared.c::cgit_print_filemode(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 23 Feb 2008 22:45:33 +0100
Improve initialization of git directory Using the functions offered by libgit feels like the right thing to do. Also, make sure that config errors gets properly reported. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Feb 2008 21:16:53 +0100
Move cgit_repo into cgit_context This removes the global variable which is used to keep track of the currently selected repository, and adds a new variable in the cgit_context structure. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Feb 2008 13:56:09 +0100
Add all config variables into struct cgit_context This removes another big set of global variables, and introduces the cgit_prepare_context() function which populates a context-variable with compile-time default values. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Feb 2008 13:07:13 +0100
Introduce struct cgit_context This struct will hold all the cgit runtime information currently found in a multitude of global variables. The first cleanup removes all querystring-related variables. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 16 Feb 2008 11:53:40 +0100
Make repository search case insensitive This reuses the strcasestr() compiled or linked by libgit.a to implement a case insensitive variation of the repository search. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Apr 2008 12:42:27 +0200
Remove 'patch' link from tab, add to commit view It's a bit confusing to enter the patch view from the tab, since it has no layout. And the commit view has always lacked showing the commit id. Both of these warts are fixed by this commit, which adds a new header line in the commit view which shows the commit id as a 'permalink' to the current commit and also adds a link to the patch view of the current commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Apr 2008 12:20:00 +0200
Implement minimal freetext search in the repolist This makes the repolist much more usable when there's a lot of repositories registered in cgitrc. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Apr 2008 11:57:10 +0200
More layout fixes Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Apr 2008 10:57:11 +0200
Minor fixup in tree-view css Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Apr 2008 20:18:16 +0200
Reintroduce the branch switcher Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Apr 2008 20:11:49 +0200
Add fixed link to index page from repo header This makes it easier to get back to the index page, and also re-enables the usage of logo-link in cgitrc. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Apr 2008 19:59:41 +0200
Include diff in commit view Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Apr 2008 15:53:53 +0200
Replace sidebar/logo This replaces the sidebar with a more 'common' header layout and also updates the logo. Not quite finished yet, though. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Apr 2008 15:53:31 +0200
Add 'about site' and 'about repo' pages This commit uses the options and changes from the last few commits to implement a new 'about' command which works both with and without a repo. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 01:09:41 +0200
Prepare for 'about site' page / add 'root-readme' option to cgitrc The new option names a file which will be included on a new page, next to the current 'index' page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 01:06:30 +0200
Make it possible for a single cmd to work both with and without a repo When cgit_cmd.want_repo was 0, we used to assume that the cmd would never be invoked for a repo. But soon this will become untrue (the 'about' cmd is rapidly approching), so from now on we will initialize any requested repo even if want_repo==0 (and return an error if want_repo==1 but no repo is specified). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 01:01:30 +0200
Re-enable 'index-info' and add support for 'root-desc' in cgitrc The 'index-info' option got lost when the layout was converted from sidebar to old-fashioned header (noticed by Harley Laue, thanks!), and this commit re-enables it. But there is now also an alternative in the 'root-desc' option; where 'index-info' specifies a file to include, 'root-desc' specifies the text literally. This might be nicer for the one-liner descriptions which these options typically provides. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 00:55:34 +0200
Move included header-file out of repolist table When the 'index-header' option is specified in cgitrc we used to print the included file content inside the repolist table, which is bad style. This commit makes the included file be printed before the table. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 29 Apr 2008 00:35:49 +0200
Prepare for 'about repo' page Each repo can include an external file which used to be included on the top of the summary page, but it will now soon get a page of it own. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 28 Apr 2008 23:06:57 +0200
Add page 'ls_cache' This new page will list all entries found in the current cache, which is useful when reviewing the new cache implementation. There are no links to the new page, but it's reachable by adding 'p=ls_cache' to any cgit url. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 28 Apr 2008 12:10:13 +0200
Redesign the caching layer The original caching layer in cgit has no upper bound on the number of concurrent cache entries, so when cgit is traversed by a spider (like the googlebot), the cache might end up filling your disk. Also, if any error occurs in the cache layer, no content is returned to the client. This patch redesigns the caching layer to avoid these flaws by * giving the cache a bound number of slots * disabling the cache for the current request when errors occur The cache size limit is implemented by hashing the querystring (the cache lookup key) and generating a cache filename based on this hash modulo the cache size. In order to detect hash collisions, the full lookup key (i.e. the querystring) is stored in the cache file (separated from its associated content by ascii 0). The cache filename is the reversed 8-digit hexadecimal representation of hash(key) % cache_size which should make the filesystem lookup pretty fast (if directory content is indexed/sorted); reversing the representation avoids the problem where all keys have equal prefix. There is a new config option, cache-size, which sets the upper bound for the cache. Default value for this option is 0, which has the same effect as setting nocache=1 (hence nocache is now deprecated). Included in this patch is also a new testfile which verifies that the new option works as intended. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 28 Apr 2008 11:32:42 +0200
allow specification of directly linked blobs mimetypes Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Tue, 24 Jun 2008 23:42:32 +0200
allow blob extract blobs by head/path combination If blob is invoked with no id=, it tries to look up h= and search for path= in there. Once found, proceed as normal, otherwise, fail as normal. Signed-off-by: Michael Krelin <hacker@klever.net>
Michael Krelin hacker@klever.net
Tue, 24 Jun 2008 23:33:24 +0200
Add atom-support This enables a page which generates atom feeds for the current branch and path, heavily inspired by the atom-support in gitweb. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 21 May 2008 08:17:54 +0200
Add support for cloning over http This patch implements basic support for cloning over http, based on the work on git-http-backend by Shawn O. Pearce. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 01:20:24 +0200
Supply status description to html_status() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 22:57:44 +0200
ui-tree: link to plain view instead of blob view The urls for plain view makes it possible to download blobs without knowing their SHA1, but the function needs to be promoted and the link from tree view seems like a perfect fit. PS: Although hidden, the blob view still is nice for direct blob access so there's no point in removing it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 11:07:13 +0200
Implement plain view This implements a way to access plain blobs by path (similar to the tree view) instead of by sha1. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 06 Aug 2008 10:53:50 +0200
use Host: header to generate cgit_hosturl I run an instance of lighttpd for cgit behind nginx (nginx doesn't execute CGI). So the port (SERVER_PORT=33333) that lighttpd runs on sends to cgit is different from the standard port 80 that public clients connect to (via nginx). This was causing the Atom feed URL to show the private port number that lighttpd was running on. Since the HTTP/1.1 "Host" header includes the port number if running on a non-standard port, it allows non-client-facing HTTP servers to transparently generate public URLs that clients can see. So use the "Host" header if it is available and fall back to SERVER_NAME/SERVER_PORT for some clients that don't set HTTP_HOST. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Eric Wong normalperson@yhbt.net
Sun, 31 Aug 2008 23:30:33 -0700
ui-tag: show the taggers email If it's specified there's no point in hiding it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 15 Sep 2008 22:40:02 +0200
parsing.c: be prepared for unexpected content in commit/tag objects When parsing commits and tags cgit made too many assumptions about the formatting of said objects. This patch tries to make the code be more prepared to handle 'malformed' objects. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 14 Sep 2008 09:45:37 +0200
ui-shared.c: use html_url_arg() The link-generating functions are updated to use the new html_url_arg function, thereby fixing links to strange repos, branches and files. Also, the test-suite is updated to verify some cases of strange urls. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 12:52:25 +0200
html.c: add html_url_arg This function can be used to properly escape querystring parameter values. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 12:49:46 +0200
ui-repolist + ui-shared: Use cgit_summary_link() This makes is possible to use cgit with repository urls containing special url characters like '#' and '?'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 17:16:36 +0200
ui-shared.c: add cgit_summary_link() This function can be used to generate a link to the summary page for the currently active repo. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 16:55:50 +0200
ui-shared.c: use html_url_path() in repolink() This makes sure that reponames and paths are properly escaped when used as urls. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 16:54:44 +0200
html.c: add html_url_path This function can be used to generate properly escaped path-components for links. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 05 Oct 2008 16:52:57 +0200
Makefile: enable compilation on uclibc Original-patch-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 11 Oct 2008 20:21:06 +0200
Fix tests to work on Ubuntu (dash) The system shell (/bin/sh) on Ubuntu is dash, which aims to be a POSIX standard shell. In particular, dash does not implement any of the common extensions to the standard that, say, bash and ksh do. Replace some non-POSIX constructs in setup.sh with more portable and mundane code. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ramsay Jones ramsay@ramsay1.demon.co.uk
Tue, 04 Nov 2008 19:23:41 +0000
Fix some warnings to allow -Werror The type used to declare the st_size field of a 'struct stat' can be a 32- or 64-bit sized type, which can vary from one platform to another, or even from one compilation to another. In particular, on linux, if you include the following define: #define _FILE_OFFSET_BITS 64 prior to including certain system header files, then the type used for the st_size field will be __off64_t, otherwise it will be an __off_t. Note that the above define is included at the top of git-compat-util.h. In cache.c, the "%zd" format specifier expects a "signed size_t", another type which can vary, when an __off64_t or a __off_t is provided. To supress the warning, use the PRIuMAX format specifier and cast the st_size field to uintmax_t. This should work an any platform for which git currently compiles. In ui-plain.c, the size parameter of sha1_object_info() and read_sha1_file() is defined to be "unsigned long *" not "size_t *". So, to supress the warning, simply declare size with the correct type. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ramsay Jones ramsay@ramsay1.demon.co.uk
Tue, 04 Nov 2008 19:22:08 +0000
Use GIT-1.6.0.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 06 Nov 2008 19:13:21 +0100
Use mode 0644 for non-executable files Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Karl Chen quarl@cs.berkeley.edu
Wed, 05 Nov 2008 02:45:18 -0800
ui-repolist: handle empty agefiles When the agefile was empty the old code would happily reuse the static buffer filled by a previous call to read_agefile(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 14 Nov 2008 09:29:22 +0100
Merge branch 'rj/buildtweaks' into stable
Lars Hjemli hjemli@gmail.com
Fri, 05 Dec 2008 19:13:32 +0100
ui-log: try to disambiguate ref names The 'h' querystring parameter in cgit is normally used to specify a branch (i.e. a ref below refs/heads/), but if a repository contains a tag with the same name as a branch the output from ui-log would use the tag as start-revision. This patch tries to fix the issue by checking if the specified ref is valid as a branch name; if so, the full refname is used in the call to setup_revisions(). Noticed-by: Takamori Yamaguchi <akschar@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 03 Dec 2008 17:34:23 +0100
parsing.c: enable builds with NO_ICONV defined Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 05 Dec 2008 19:10:28 +0100
ui-repolist: avoid build warning for strcasestr(3) The non-standard function strcasestr is only defined if _GNU_SOURCE has also been defined. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 05 Dec 2008 19:04:17 +0100
Makefile: allow cgit.conf to override platform-specific tweaks If the makefile doesn't automatically define the correct build variables it is nice to be able to define them explicitly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 05 Dec 2008 18:47:16 +0100
Extra cygwin-specific changes Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ramsay Jones ramsay@ramsay1.demon.co.uk
Sat, 15 Nov 2008 18:26:32 +0000
ui-shared: shorten the sha1 printed by cgit_object_link Such links was printed as the object type followed by the objects complete sha1. We still use the complete sha1 in the link but we no longer show it in all its glory; only the first 10 hex chars are printed. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Dec 2008 21:58:59 +0100
ui-refs.c: show download links for all tags referring to commit objects The snapshot function has only been linked to from the commit page while users often would want to download a certain release. With this patch, direct download links will now be printed for each tagged release on the repo summary page. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Dec 2008 21:56:07 +0100
ui-shared: exploit snapshot dwimmery in cgit_print_snapshot_links Since we know that ui-snapshot.c is able to extract the revision from the filename, there's no longer necessary to specify the revision with a 'id' querystring argument. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Dec 2008 21:50:19 +0100
ui-snapshot: improve extraction of revision from snapshot name The modified get_ref_from_filename() supports the following snapshot formats: * $REV.$EXT * $REPO[-_]*v?$REV.$EXT This implies that the following urls will retrieve the expected revision: * http://hjemli.net/git/cgit/snapshot/v0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/cgit-0.8.1.tar.gz * http://hjemli.net/git/cgit/snapshot/cgit-140012d7a8.tar.gz Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 01 Dec 2008 19:13:44 +0100
Set prefix in snapshots when using dwimmery This patch sets the directory prefix in archives to be the filename, excluding the suffix (.tar.gz, .tar.bz2 etc). The patch also removes the prefix parameter in cgit_print_snapshot() as the prefix might differ. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Natanael Copa natanael.copa@gmail.com
Sat, 29 Nov 2008 21:49:07 -0800
ui-repolist: implement lazy caching of repo->mtime When sorting the list of repositories by their last modification time, cgit would (in the worst case) invoke fstat(3) four times and open(3) twice for each callback from qsort(3). This obviously scales very badly. Now, the calculated modtime for each repo is saved in repo->mtime, thus keeping the number of stat/open invocations identical for sorted and unsorted repo-listings. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 16:46:37 +0100
ui-repolist: sort null values last When sorting on e.g. owner, it's not interesting to get all repos without owner at the top of the list. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 14:27:35 +0100
ui-repolist: add support for sorting any column Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 14:08:51 +0100
ui-repolist: extract get_repo_modtime() from print_modtime() The new function is then used by both print_modtime() and cgit_reposort_modtime(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 13:33:02 +0100
Add support for sorting by Age in the repolist Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Benjamin Close Benjamin.Close@clearchain.com
Tue, 25 Nov 2008 06:25:35 -0800
ui-log: use css to make full-log prettier Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 19:11:26 +0100
ui-log: (ab)use extra columns for commit message when showmsg=1 If the commit message has extra long lines it's better to use the author/ files/lines columns to show those lines than to push the columns of screen and force the users to hscroll. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 18:58:31 +0100
ui-log: add support for showing the full commit message Some users prefer to see the full message, so to make these users happy the new querystring parameter "showmsg" can be used to print the full commit message per log entry. A link is provided in the log heading to make this function accessible, and all links and forms tries to preserve the users preference. Note: the new link is not displayed on the summary page since the point of the summary page is to be a summary, but it is still obeyed if specified manually. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 29 Nov 2008 18:39:41 +0100
tests/setup.sh: allow testsuite to fail properly with POSIX standard shells The "((expr))" construct is not implemented by e.g. dash, so this commit replaces the construct with a more portable one. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 12:03:54 +0100
tests/t0010-validate-html.sh: skip tests if 'tidy' is not available Noticed-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 11:53:59 +0100
ui-patch: whitespace changes in the patch generation code Add a space between the committer name and email, and remove superfluous spaces in the date header. This makes cgit-generated patches match the output from git-format-patch almost exactly, at least as far as the email headers go. Signed-off-by: Tomas Carnecky <tom@dbservice.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Tomas Carnecky tom@dbservice.com
Tue, 30 Dec 2008 11:14:52 +0100
ui-tree.c: do not add blank line when displaying blobs Also, fix a related bug in the test-suite. Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 06 Jan 2009 21:37:23 +0100
Makefile: avoid libcurl when building git We don't need support for fetching/pushing in libgit.a, hence we don't need to link with libcurl. Noticed-by: Robin Redeker <elmex@ta-sa.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 10 Jan 2009 15:18:18 +0100
Untie logic for SCRIPT_NAME and PATH_INFO SCRIPT_NAME is used as fallback for virtual-root when virtual-root is unspecified in cgitrc and PATH_INFO is used as fallback for the query- string parameter 'url' when the latter is unspecified. But until now, the use of PATH_INFO depended on virtual-root also being unspecified, i.e. it was impossible to use PATH_INFO when virtual-root was specified. This commit makes the fallback on SCRIPT_NAME and PATH_INFO independent code paths, i.e. it is now possible to specify virtual-root in cgitrc while still using PATH_INFO (instead of rewrite rules) to get 'pretty urls'. Noticed-by: Jack Moffitt <jack@chesspark.com> Noticed-by: LiKai Liu <liulk@cs.bu.edu> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 26 Dec 2008 10:33:01 +0100
ui-snapshot.c: change mime-type for tar.gz and tar.bz2 The updated mime-types seems to work better than the old ones with both safari and firefox. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 26 Dec 2008 11:33:59 +0100
tests/t0107-snapshot.sh: make testscript match updated snapshot behavior Since cgit now returns a 404 error when the snapshot filename cannot be resolved to a commit object, the testscript needs to request a valid snapshot name. Also, the script assumed that the toplevel directory in the snapshot would get the name of the repository but it's now named similar to the requested snapshot. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Dec 2008 10:52:35 +0100
return 404 if snapshot is not found Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Natanael Copa natanael.copa@gmail.com
Tue, 02 Dec 2008 11:31:34 +0100
ui-tag: escape tagnames properly Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 16:37:47 +0100
Avoid SEGFAULT on invalid requests When an unknown page is requested, either on the querystring or via PATH_INFO, we end up with a null-referencing cgit_cmd. This null- pointer is then used as argument to the hc() function (which decides what tab to render as 'active'), but this function failed to check if a valid cmd was specified and a SEGFAULT would occur. This patch fixes the issue by introducing a 'fallback-cmd' which specifies what tab to render as 'active' when no valid cmd is requested. While at it, we now also keep track of the active repository even if an invalid cmd was requested since we want to show the error message about the invalid request in the correct context. Noticed-by: Robin Redeker <elmex@ta-sa.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 11 Jan 2009 21:23:04 +0100
Makefile: install cgit.{css,png} in CGIT_DATA_PATH CGIT_DATA_PATH defaults to CGIT_SCRIPT_PATH, but allows users to install the cgi and the data files in different locations. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Sun, 11 Jan 2009 18:23:59 -0500
Makefile: add INSTALL var to set install command This also explicitly sets the modes for installed files (755 for the .cgi, 644 for the .css and .png). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Sun, 11 Jan 2009 18:23:52 -0500
Fix tar.bz2 snapshot example Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Sun, 11 Jan 2009 18:23:39 -0500
ui-stats.c: reuse cgit_add_hidden_formfields() This makes sure that the currect branch and path is preserved when changing the stats period or author count. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 15:57:55 +0100
ui-shared: externalize add_hidden_formfields() This function will be reused by ui-stats.c in the next commit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 15:52:35 +0100
ui-tree: add link to stats page per path Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 13:34:42 +0100
ui-shared: add and use cgit_stats_link() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 13:34:16 +0100
ui-stats: replace 'enable-stats' setting with 'max-stats' The new 'max-stats' and 'repo.max-stats' settings makes it possible to define the maximum statistics period, both globally and per repo. Hence, it is now feasible to allow statistics on repositories with a high commit frequency, like linux-2.6, by setting repo.max-stats to e.g. 'month'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 13:17:21 +0100
ui-stats: enable path-filtered stats When a path is specified on the querystring the commit statistics will now be filtered by this path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 07 Dec 2008 11:45:28 +0100
Add a 'stats' page to each repo This new page, which is disabled by default, can be used to print some statistics about the number of commits per period in the repository, where period can be either weeks, months, quarters or years. The function can be activated globally by setting 'enable-stats=1' in cgitrc and disabled for individual repos by setting 'repo.enable-stats=0'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 06 Dec 2008 17:38:19 +0100
changed objects are outputted, allowing for selections of code only
Onne Gorter onne.gorter@avinity.net
Wed, 07 Jan 2009 13:56:14 +0100
tests/t0105-commit.sh: expect commit decorations When a commit is referenced by a branch or tag the commit subject- line will be suffixed with the proper decorations, hence the test for this line needs to be updated. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 22:59:23 +0100
cgit.css: minor adjustment of commit decorations Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 22:42:03 +0100
Add decorations to commit pages This adds the tag and branch head decorations to the commit pages. This is similar to how commits are displayed in the standard gitweb interface. Signed-off-by: Justin Waters <justin.waters@timesys.com>
Justin Waters justin.waters@timesys.com
Mon, 12 Jan 2009 10:23:28 -0500
CGIT 0.8.1.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 27 Jan 2009 20:35:49 +0100
html.c: use correct escaping in html attributes First, an apostrophe is not a quote. Second, we also need to escape quotes. And finally, quotes are encoded as '"', not '"e;'. Sighned-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 29 Jan 2009 22:21:15 +0100
Add support for a custom header Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 29 Jan 2009 21:27:39 +0100
shared.c: avoid SEGFAULT when checking for binary buffers Before calling buffer_is_binary() we need to verify that the buffer is valid. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 01 Feb 2009 19:29:24 +0100
ui-tree: show hexdump of binary blobs This teaches ui-tree to detect binary blobs and display them similar to `hexdump -C` (only wider). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 31 Jan 2009 17:45:48 +0100
Handle binary files in diffs This teaches all diff-related operations (i.e. ui-log, ui-diff and ui-patch) how to handle binary files. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 31 Jan 2009 10:40:40 +0100
Makefile: add doc-related targets Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 10:53:31 +0100
Add cgit-doc.css This css is used to tweak the display of asciidoc-generated html for cgitrc.5.txt. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 10:24:25 +0100
cgitrc.5.txt: un-indent the name section Otherwise, this section is treated as a preformatted, literal block. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 10:12:05 +0100
cgitrc.5.txt: wrap the example file in an asciidoc LiteralBlock Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 10:02:09 +0100
cgitrc.5.txt: make the cgitrc options a valid asciidoc labeled list Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 12 Feb 2009 09:58:28 +0100
make cgitrc.5.txt asciidoc manpage compatible According to the instructions and requirements here: http://www.methods.co.nz/asciidoc/chunked/ar01s20.html
Matt McCormick (thewtex) matt@mmmccormick.com
Wed, 11 Feb 2009 23:06:05 -0600
ui-snapshot: avoid segfault when no filename is specified Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 08:57:33 +0100
fix segfault when displaying empty blobs When size is zero, subtracting one from it turns it into ULONG_MAX which causes an out-of-bounds access on buf. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Eric Wong normalperson@yhbt.net
Sat, 14 Mar 2009 18:41:47 -0700
CGIT 0.8.2.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 15 Mar 2009 09:31:05 +0100
use cgit_httpscheme() for atom feed
Diego Ongaro ongardie@gmail.com
Wed, 10 Jun 2009 18:18:34 -0500
add cgit_httpscheme() -> http:// or https://
Diego Ongaro ongardie@gmail.com
Wed, 10 Jun 2009 18:09:55 -0500
ui-blob: return 'application/octet-stream' for binary blobs Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 11:51:19 +0200
ui-plain: Return 'application/octet-stream' for binary files. Signed-off-by: Remko Tronçon <git@el-tramo.be> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Remko Tronçon git@el-tramo.be
Sat, 25 Jul 2009 11:45:18 +0200
Add support for HEAD requests This is a quick 'n dirty hack which makes cgit honor HEAD requests. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 19 Feb 2009 23:24:15 +0100
Add support for ETag in 'plain' view When downloading a blob identified by its path, the client might want to know if the blob has been modified since a previous download of the same path. To this end, an ETag containing the blob SHA1 seems to be ideal. Todo: add support for HEAD requests... Suggested-by: Owen Taylor <otaylor@redhat.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 19 Feb 2009 22:38:36 +0100
cgitrc.5.txt: document 'head-include' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:03:54 +0200
Add head-include configuration option. This patch adds an option to the configuration file, "head-include", which works just like "header" or "footer", except the content is put into the HTML's <head> tag.
Mark Lodato lodatom@gmail.com
Sun, 15 Mar 2009 00:11:54 -0400
cgit.h: keep config flags sorted Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:25:06 +0200
cgitrc.5.txt: document 'embedded' and 'noheader' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:23:30 +0200
Add support for 'noheader' option This option can be used to disable the standard cgit page header, which might be useful in combination with the 'embedded' option. Suggested-by: Mark Constable <markc@renta.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 25 Jul 2009 12:19:31 +0200
Add support for an 'embedded' option in cgitrc When activated, cgit will neither generate http headers nor any 'framing' html elements (like <html> and <body>). Also, all page content is now wrapped in a <div id='cgit'> element to make it easier to select the correct cgit classes when embedded/themed. Suggested-by: Matt Sealey <matt@genesi-usa.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 22 Jan 2009 23:33:56 +0100
Add support for mime type registration and lookup This patch makes it possible to register mappings from filename extension to mime type in cgitrc and use this mapping when returning blob content in `plain` view. The reason for adding this mapping to cgitrc (as opposed to parsing something like /etc/mime.types) is to allow quick lookup of a limited number of filename extensions (/etc/mime-types on my machine currently contains over 700 entries). NB: A nice addition to this patch would be to parse /etc/mime.types when `plain` view is requested for a file with an extension for which there is no mapping registered in cgitrc. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 13 Feb 2009 20:43:30 +0100
cgit.c: allow repo.*-filter options to unset the current default If e.g. repo.commit-filter is specified as an empty string, this is now properly handled as disabling the global commit-filter setting for the current repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:39:44 +0200
Add support for repo.commit-filter and repo.source-filter These options can be used to override the default commit- and source- filter settings per repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:22:00 +0200
ui-commit: add support for 'commit-filter' option This new option specifies a filter which is executed on the commit message, i.e. the commit message is written to the filters STDIN and the filters STDOUT is included verbatim as the commit message. This can be used to implement commit linking by creating a simple shell script in e.g. /usr/bin/cgit-commit-filter.sh like this: #/bin/sh sed -re 's|\b([0-9a-fA-F]{6,40})\b|<a href="./?id=\1">\1</a>|g' Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 31 Jul 2009 17:42:57 +0200
ui-tree: add support for source-filter option This new option is used to specify an external command which will be executed when displaying blob content in the tree view. Blob content will be written to STDIN of the filter and STDOUT from the filter will be included verbatim in the html output from cgit. The file name of the blob will be passed as the only argument to the filter command. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 31 Jul 2009 16:55:27 +0200
ui-snapshot: use cgit_{open|close}_filter() to execute compressors This simplifies the code in ui-snapshot.c and makes the test-suite verify the new filter-functions. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 31 Jul 2009 15:52:57 +0200
Add generic filter/plugin infrastructure The functions cgit_open_filter() and cgit_close_filter() can be used to execute filters on the output stream from cgit. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 31 Jul 2009 17:38:38 +0200
Add 'about-filter' and 'repo.about-filter' options These options can be used to execute a filter command on each about-page, both top-level and for each repository (repo.about-filter can be used to override the current about-filter). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 13:27:21 +0200
ui-summary: enable arbitrary paths below repo.readme This change makes it possible to include any number of pages below the 'about' tab for a repository. The path is assumed to be located in the same directory as the 'repo.readme' file. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 09 Aug 2009 11:50:34 +0200
ui-shared: add support for header/footer options when embedded=1 When embedded=1, cgit used to ignore the header and footer options. But honoring these options when embedded=1 makes it possible to "frame" the html fragment generated by cgit with any kind of static content, i.e. it should become easier to integrate cgit with site-specfic layouts. Original-patch-by: Mark Constable <markc@renta.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 11 Aug 2009 10:12:35 +0200
ui-shared: add support for NO_HTTP=1/--nohttp cgit_print_http_headers() used to do nothing if 'embedded' was specified in cgitrc, but that was wrong - we never want to skip the headers when invoked as a CGI app. Sadly, there's no easy way to detect if we're invoked as a CGI app or if we're invoked by another CGI app, so for the latter case cgit needs to be invoked with either --nohttp on the command line or NO_HTTP=1 in the environment. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Aug 2009 09:20:17 +0200
Cleanup handling of environment variables Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 10 Aug 2009 08:21:09 +0200
cgit.c: do not segfault on unexpected query-string format The querystring_cb() function will be invoked with a NULL value when the querystring contains a name not followed by a '='. Such a value used to cause a segfault, which this patch fixes. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 17 Aug 2009 09:05:13 +0200
ui-tag.c: do not segfault when id is missing from query-string The purpose of the tag page is to print info about a specific tag, but if no tag was specified on the query-string cgit used to segfault. With this patch, cgit will fallback to the value of the 'h' parameter instead (which is never NULL due to prepare_repo_cmd() in cgit.c). It will now also verify that the specified tagname is in fact a valid ref in the 'refs/tags/' namespace, i.e. specifying 'id=master' will trigger a 'Bad tag reference' error. Noticed-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 17 Aug 2009 09:19:05 +0200
ui-shared: don't print header <img/> if there isn't a logo defined Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Matthew Metnetsky mimetnet@vidu.us
Mon, 29 Jun 2009 21:27:51 -0400
truncate buffer before reading empty files If readfile() reads an empty file, fgets() won't truncate the buffer and it'll still contain the contents of the previously read file. [lh: fixed similar issue in ui-repolist.c] Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Simon Arlott simon@fire.lp0.eu
Sat, 07 Mar 2009 00:06:24 +0000
ui-plain.c: only return the blob with the specified path When a path to a directory was specified for the 'plain' view, each blob in the directory used to be returned to the client. This patch fixes the issue by matching the path of each blob against the requested path. Noticed-by: Lars Stoltenow <penma@penma.de> Signed-off-by: Lars Hjemli <larsh@slackbox.hjemli.net>
Lars Hjemli larsh@slackbox.hjemli.net
Sun, 06 Sep 2009 19:33:10 +0200
cgit.css: make the blob display in tree view a bit prettier Adding some padding to the linenumbers while right-aligning them and removing the background color makes the page more readable. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 21 Aug 2009 14:37:50 +0200
Rename "linenumbers" to "enable-tree-linenumbers", change default to "1" This makes the name of the cgitrc option more descriptive and at the same time changes the default from "0" to "1" in an attempt to stay backwards compatible - prior to the introduction of "source-filter" and "linenumbers", cgit always generated linenumber links in the tree view, but now this feature can be turned off (one might want to do this if the source-filter performs line-wrapping etc). While at it, the documentation is updated to match the surrounding descriptions. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Fri, 21 Aug 2009 14:26:52 +0200
Add 'linenumbers' config option Signed-off-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Florian Pritz bluewind@xssn.at
Sun, 09 Aug 2009 20:42:45 +0000
ui-tree.c: show line numbers when highlighting When source-filter is enabled, cgit currently will not display linenumbers in the tree view. This patch restores the linenumber function. Signed-off-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Florian Pritz bluewind@xssn.at
Sun, 09 Aug 2009 13:43:18 +0000
cgit.c: respect repo-local 'snapshots' option for --scan-path The repo-specific 'snapshots' option is bitwise AND'ed with the global 'snapshots' option during parsing, and since the global cgitrc hasn't been parsed when --scan-path is processed the global 'snapshots' will always be 0 (i.e. no repo-specific 'snapshots' setting will have any effect). This patch fixes the issue by setting the global 'snapshots' mask to 0xFF (hence relying on later parsing of the generated cgitrc repolist to do the right thing). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 13:31:49 +0200
cgit.c: only print first line of repo.desc in print_repo() Since repo.desc might have been populated by reading the 'description' file in GIT_DIR, it may contain newlines. And by printing the literal value, we may then generate an invalid cgitrc include-file. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 13:27:15 +0200
Add and use cgit_find_stats_periodname() in print_repo() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 11:02:48 +0200
cgit.c: generate repo.snapshots in print_repo() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 10:55:01 +0200
cgit.c: add missing options to print_repo() Note: print_repo() still ignores repo.max-stats and repo.snapshots, which both requires additional work since these settings are represented internally as an enum and a bitmap. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 10:22:21 +0200
shared.c: initialize cgit_repo structs properly Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 10:14:02 +0200
Add config option 'enable-filter-overrides' This option must be enabled if repo-specific cgitrc files should be allowed to override any of the 'filter' options. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 08:53:21 +0200
cgitrc.5.txt: fix markup errors Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 07:51:48 +0200
ui-repolist: handle empty sections similar to NULL sections Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 07:42:03 +0200
Add support for repo-local cgitrc file When recursively scanning a directory tree looking for git repositories, cgit will now parse cgitrc files found within such repositories. The repo-specific config files can include any repo-specific options except 'repo.url' and 'repo.path'. Also, in such config files the 'repo.' prefix can not be used, i.e. the valid options then becomes: * name * clone-url * desc * ower * defbranch * snapshots * enable-log-filecount * enable-log-linecount * max-stats * module-link * section * about-filter * commit-filter * source-filter * readme Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 24 Aug 2009 00:04:58 +0200
cgit.c: refactor repo_config() from config_cb() The new function repo_config() is used to handle all 'simple' repo options, for the following reasons: * code readability * parser performance * upcoming support for repo-local cgitrc files during scanning Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 23:23:20 +0200
ui-repolist.c: sort by section name, repo name as default When no sorting is requested by the client, cgit will now sort by section name followed by repo name. This allows repos to be registered/ discovered independently of their display order. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 23:09:31 +0200
Add config option 'repo.section' This option can be used to specify the section name for the current repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 23:00:28 +0200
Introduce 'section' as canonical spelling for 'repo.group' The 'repo.' prefix should be reserved for repo-specific options, but the option 'repo.group' must still be honored to stay backwards compatible. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 22:58:39 +0200
Add support for --scan-path command line option This is an alias for --scan-tree (which might be deprecated in the future). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 19:36:45 +0200
Rename 'repo.scan' to 'scan-path' The 'repo.' prefix will soon be reserved for repo-specific config options. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 23 Aug 2009 19:35:56 +0200
cgitrc.5.txt: document repo.scan and cache-scanrc-ttl Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Aug 2009 17:42:14 +0200
cgit.c: add support for caching autodetected repositories Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 20 Aug 2009 17:41:54 +0200
cgit.c: make print_repolist() and print_repo() reusable for caching Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 19 Aug 2009 17:47:24 +0200
cache.h: export hash_str() This function will be reused to cache the result of tree scanning. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 19 Aug 2009 17:43:47 +0200
cgit.c: add support for cgitrc option 'repo.scan' When specified, the specified path will be scanned for repositories. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 11 Aug 2009 10:09:06 +0200
scan-tree: detect non-bare repository and stop scanning early We don't want to descend into every subdirectory of a git repository with a workdir. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 11 Aug 2009 10:08:12 +0200
CGIT 0.8.2.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 13 Sep 2009 22:14:12 +0200
Close fd on error in readfile() Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Rys Sommefeldt rys@pixeltards.com
Sat, 07 Nov 2009 15:24:45 +0100
Nov is the correct abbreviation
Danijel Tašov dt@korn.shell.la
Mon, 02 Nov 2009 22:10:04 +0100
shared.c: return original errno Noticed-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 07 Nov 2009 18:08:30 +0100
Don't crash when a repo-specific readme file is used Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Sami Kyöstilä sami.kyostila@gmail.com
Tue, 08 Dec 2009 18:18:10 +0100
"max-blob-size" config var to limit generated HTML size Sometimes it is not feasible to generate the HTML pretty-print for large files, especially if a source-filter is involved or binary data is to be displayed. The "max-blob-size" config var allows to disable HTML output for blobs bigger than X KBytes. Plain downloads are not affected. Signed-off-by: Georg Lukas <georg@op-co.de>
Georg Lukas georg@op-co.de
Sat, 28 Nov 2009 03:44:33 +0100
cgit.css: highlight directories in tree
Georg Lukas georg@op-co.de
Sat, 28 Nov 2009 03:07:34 +0100
syntax highlighting for all formats supported by "highlight" The highlight tool can be given any of the supported file extensions as its -S parameter. This patch replaces the case-switch by extracting the extension from the supplied file name and passing it to highlight. However, this requires a shell supporting the ${var##pattern} syntax, like dash or bash. Unknown extensions cause a fall-back to plain text using the --force switch. Error messages are redirected to /dev/null. A special case maps Makefile and Makefile.* to the "mk" extension. The total overhead is reduced by calling "exec highlight". No forks are needed during script execution. Signed-off-by: Georg Lukas <georg@op-co.de>
Georg Lukas georg@op-co.de
Thu, 19 Nov 2009 12:14:45 +0100
In side-by-side diff, add support for marking individual characters. Refuses to do so if the left hand side of the diff has different amount of differing lines to the right hand side to avoid confusion. Note that I use the naive dynamic programming approach for calculating the longest common subsequence. We could probably be more efficient by using a better algorithm. The LCS calculating function is O(n*m) and uses up n*m amount of memory too (so if we we compare two strings of length 100, I use an array of 10000 for calculating the LCS). Might want to not calculate LCS if the length of the line is too large. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se>
Ragnar Ouchterlony ragnar@lysator.liu.se
Sun, 25 Oct 2009 18:13:22 +0100
Fixed side-by-side diff bugs related to binary diff and more. The fixed bugs: * "Binary files differ" did not show up either in unidiff or side-by-side-diff. * Subproject diffs did not work for side-by-side diffs. * The ssdiff link on diff pages did not conserve the path. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ragnar Ouchterlony ragnar@lysator.liu.se
Wed, 16 Sep 2009 18:56:26 +0200
Polishing of how the side-by-side diff looks. Aligned all different files, so that all side-by-side tables look the same. Also made sure that the tables take up the whole browser width. Also various changes to the css to make things easier on the eye. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ragnar Ouchterlony ragnar@lysator.liu.se
Tue, 15 Sep 2009 19:44:37 +0200
Add possibility to switch between unidiff and side-by-side-diff. A new config option side-by-side-diffs added, defaulting to 0, meaning unidiff. Also a query option (ss) is used toggle this. In the commit page you can switch between the two diff formats by clicking on the link on the "commit"-row, to the right of (patch). In the diff page you can switch by using the link at the start of the page. All commit-links and diff-links will remember the choice. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ragnar Ouchterlony ragnar@lysator.liu.se
Mon, 14 Sep 2009 20:19:02 +0200
First version of side-by-side diff. This constitutes the first prototype of a side-by-side diff. It is not possible to switch between unidiff and side-by-side diff at all at this stage. Signed-off-by: Ragnar Ouchterlony <ragnar@lysator.liu.se> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Ragnar Ouchterlony ragnar@lysator.liu.se
Sun, 13 Sep 2009 19:36:35 +0200
Add support for remote branches Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 07 Nov 2009 19:10:58 +0100
CGIT 0.8.3.1 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 12 Dec 2009 12:08:14 +0100
Fix segfault on ppc when browsing tree
Martins Polakovs martins.polakovs@gmail.com
Thu, 10 Dec 2009 17:34:42 +0159
Clear the whole context Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Daniel Milde info@milde.cz
Sun, 21 Feb 2010 14:38:59 +0100
ui-shared.c: fix segfault when repo is empty PATH_INFO="/$REPONAME/commit/?id=1" QUERY_STRING="id=1" ./cgit.cgi triggers segfault when the repository is empty and therefore ctx.qry.head is unset Signed-off-by: Florian Pritz <bluewind@xssn.at> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Florian Pritz bluewind@xssn.at
Mon, 01 Feb 2010 17:55:37 +0100
html: properly percent-escape URLs The only valid characters for a URL are unreserved characters a-zA-Z0-9_-.~ and the reserved characters !*'();:@&=+$,/?%#[] , as per RFC 3986. Everything else must be escaped. Additionally, the # and ? always have special meaning, and the &, =, and + have special meaning in a query string, so they too must be escaped. To make this easier, a table of escapes is now used so that we do not have to call fmt() for each character; if the entry is 0, no escaping is needed. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Tue, 09 Feb 2010 10:12:43 -0500
html: make all strings 'const char *' None of the html_* functions modify their argument, so they can all be 'const char *' instead of a simple 'char *'. This removes the need to cast (or copy) when trying to print a const string. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Mon, 08 Feb 2010 23:04:41 -0500
shared.c: avoid memory leak during diff Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Thu, 08 Apr 2010 00:48:36 +0200
Optionally generate verbose parent links The new option 'enable-subject-links' must be used to enable the verbose parent-links in commit view. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 27 Feb 2010 13:12:55 +0100
display subject instead of sha1 as link title of parents Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Stefan Naewe stefan.naewe@atlas-elektronik.com
Mon, 15 Feb 2010 09:57:50 +0100
ui-plain: print directory listings When a user requests a plain view of a tree (as opposed to a blob), print out a directory listing rather than giving a 404 Not Found. Also, fix a segfault when ctx->qry.path is NULL - i.e, when /plain is requested without a path. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sun, 31 Jan 2010 14:25:03 -0500
ui-plain: more efficient walk_tree() Git's read_tree_recursive() already filters out the objects by pathname, so we only have to compare baselen to the expected. That is, no string matching is required. Additionally, if the requested path is a directory, the old code would walk through all of its immediate children. This is not necessary, this so we no longer do that. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sun, 31 Jan 2010 01:07:41 -0500
ui-plain: remove unused curr_rev variable Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sat, 30 Jan 2010 23:54:16 -0500
scan-tree: add test for noweb-file in repo dir If such a file exists, the repo is not added to the repolist. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sun, 28 Feb 2010 18:40:02 +0100
Add 'max-atom-items' config variable This allows one to specify the items in the RSS feeds Signed-off-by: Aaron Griffin <agriffin@datalogics.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Aaron Griffin agriffin@datalogics.com
Thu, 04 Feb 2010 18:08:16 -0600
Add all=1 query param for atom feeds Displays all items from all branches in one feed Signed-off-by: Aaron Griffin <agriffin@datalogics.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Aaron Griffin agriffin@datalogics.com
Wed, 03 Feb 2010 18:31:17 -0600
CGIT 0.8.3.2 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:50:58 +0200
ui-shared.c: path-limit style nitpick This subjectively makes the path-limit bar less visually intrusive. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 11:35:57 +0200
ui-log: Preserve path limit in outgoing links This allows navigation through the 'log' page/command without losing the active path limit. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Fri, 11 Jun 2010 14:50:47 +0200
ui-shared: Preserve path limit in "tab bar" links When using the "tab bar" in the pageheader to navigate between pages, any path limit in effect on the current page is forgotten in the link to the target page, even if the target page can interpret and use the path limit constructively. Instead, preserve the current page's path limit in the "tab bar" links to other pages, where the path limit is useful to the target page. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:36 +0200
ui-commit: Preserve path limit in links to commit page This includes adding a path argument to cgit_commit_link() and updating all its callers. The callers from within the commit page (i.e. the "commit", "unidiff"/"side-by-side diff" and "parent" links) all preserve the path limit of the current commit page. All other callers pass NULL (i.e. no path limit). Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:35 +0200
ui-commit: Preserve path limit in links to tree and diff pages For tree links, the original link is unchanged, but in the case of a path limit, a subtree link is added to the right of the original tree link. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:34 +0200
ui-patch: Apply path limit to generated patch Also indicate in the comment section of the patch that a path limit was applied, too easily see when a generated patch is only partial. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:33 +0200
ui-commit: Limit diff based on path limit in qry.path Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:32 +0200
ui-diff: Teach diffstat to obey path limit Also indicate in the diffstat header if a path limit is in effect. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:31 +0200
ui-tree: Remove unnecessary path breadcrumb navigation The path breadcrumb navigation at the top of the 'tree' page has now been duplicated in ui-shared, which leaves the ui-tree implementation unnecessary. This patch removes the breadcrumb navigation from ui-tree, and moves the "(plain)" link that followed the breadcrumb when displaying blobs to the end of the next line, following the blob SHA1. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:30 +0200
ui-shared: Teach "breadcrumb" navigation to path limit display beneath tab bar When a path limit is in effect, and displayed directly beneath the tab bar, it should offer breadcrumb navigation (like what the 'tree' page does), to allow changing the path limit easily. Implementing this requires a robust way to link back to the current page with a changed ctx->qry.path, but without losing track of the other query arguments. This is solved by adding the new cgit_self_link() function, which is then invoked repeatedly by the new cgit_print_path_crumbs() function while manipulating ctx->qry.path. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:29 +0200
ui-shared: Display path limit directly beneath tab bar in relevant pages Design-wise, the path is shown by "expanding" the grey border between the tab bar and the content area of the page to house the current path limit. This is only displayed on pages where the path limit is relevant, and only when a path limit is in effect. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:28 +0200
ui-shared: Replace ctx.qry.path with ctx.qry.vpath In all cases where ui-shared uses ctx.qry.path, it is done so in the context of a in-project path, and not in the context in which the 'refs' page or the 'clone'-related functionality uses ctx.qry.path. Make this explicit by using ctx.qry.vpath instead. This path introduces no fundamental difference in functionality except for fixing some minor bugs, for example the Atom feed reference from a "$repo/refs/heads/" page. Note that the usage of ctx.qry.path in the other ui-<page>.c files is ok, since that code presumably is only executed in the context of its own <page>, so the correct interpretation of ctx.qry.path is never in question. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:27 +0200
struct cgit_cmd: Differentiate between various usages of ctx.qry.path For many commands/pages (e.g. 'tree', 'diff', 'plain', etc.), the ctx.qry.path argument is interpreted as a path within the "virtual" project directory structure. However, for some other commands (notably 'refs', and the clone-related commands) ctx.qry.path is used in a different context (as a more or less "real" path within the '.git' directory). This patch differentiates between these two usages of ctx.qry.path, by introducing a new variable - ctx.qry.vpath - which is equal to ctx.qry.path in the former case, and NULL in the latter. This will become useful in future patches when we want various pages and the links between them to preserve existing in-project paths. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:26 +0200
ui-shared: Remove needless cgit_get_cmd() call, and refactor hc() accordingly The call to cgit_get_cmd() and the following fallback handling (to "summary" or "repoindex") in cgit_print_pageheader() is unnecessary, since the same fallback handling was already done when ctx.qry.page was set when cgit_get_cmd() was called from process_request() in cgit.c. As such, hc() can also be rewritten to simply compare the given 'page' string against ctx.qry.page. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:25 +0200
ui-shared: Improve const-ness in API This is needed to prevent const-related warnings in later patches. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:24 +0200
Remove unused variable in shared.c Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:23 +0200
Fix small typo in cgitrc example Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:22 +0200
ui-diff: Add links to increase/decrease number of context lines in diffs Add two links to the "Diffstat" line to show more/less context lines in the generated diff. To support this, cgit_commit_link() and cgit_diff_link() has learned to preserve the ctx.qry.context variable. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 20:15:51 +0200
Add URL parameter 'context' for changing the number of context lines in diffs The new ctx.qry.context variable is picked up by cgit_print_diff(), and passed via cgit_diff_files() to Git's diff machinery. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 20:15:27 +0200
ui-log.c: allow commit range as search expression Inspired-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 19 Jun 2010 14:32:37 +0200
Reencode author and committer When a commit has a specific encoding, this encoding also applies to the author and committer name and email. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Rémi Lagacé rlagace@cld.ca
Tue, 13 Jul 2010 19:15:09 +0200
Add support for environment variable expansion This patch teaches cgit to expand environment variables in certain cgitrc option values (cache_root, scan-path, include) plus when finding the location of cgitrc itself. One use case for this feature is virtual hosting - e.g. by setting $CGIT_CONFIG='/etc/cgitrc/$HTTP_HOST' in httpd.conf, all virtual hosts automatically gets their own cgitrc. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 22 Mar 2010 00:09:43 +0100
ui-diff: Add link to ignore/show whitespace changes in diffs Add a link to the "Diffstat" line to ignore/show whitespace changes in the generated diff. To support this, cgit_commit_link() and cgit_diff_link() has learned to preserve the ctx.qry.ignorews variable. Signed-off-by: Johan Herland <johan@herland.net>
Johan Herland johan@herland.net
Thu, 24 Jun 2010 17:53:20 +0200
Add URL parameter 'ignorews' for optionally ignoring whitespace in diffs The new ctx.qry.ignorews variable is passed via cgit_diff_files() and cgit_diff_tree() to Git's diff machinery. This is equivalent to passing --ignore-all-space to 'git diff'. Signed-off-by: Johan Herland <johan@herland.net>
Johan Herland johan@herland.net
Thu, 24 Jun 2010 17:52:57 +0200
CGIT 0.8.3.3 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 03 Aug 2010 22:50:02 +0200
ui-refs.c: avoid segfault on unparsed ref objects When a ref refers to something other then a commit or tag object, cgit could segfault when trying to display the tag info. Noticed-by: Eugene Sajine <euguess@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 03 Aug 2010 22:06:21 +0200
ui-log: Display git notes when present Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jeff Smith whydoubt@yahoo.com
Thu, 29 Jul 2010 09:32:31 -0500
ui-commit: Display git notes when present Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jeff Smith whydoubt@yahoo.com
Thu, 29 Jul 2010 09:32:30 -0500
Add support for 'enable-gitweb-owner' option When this option is enabled (which it is by default), cgit will lookup the 'gitweb.owner' setting in each git config file found when processing the 'scan-path' option. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jason A. Donenfeld Jason@zx2c4.com
Thu, 29 Jul 2010 20:38:01 +0200
Add support for 'remove-suffix' option When this option is enabled, the '.git' suffix of repository directories found while processing the 'scan-path' option will be removed. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jason A. Donenfeld Jason@zx2c4.com
Thu, 29 Jul 2010 19:47:50 +0200
Add support for 'project-list' option This option specifies the location of a projectlist file as used by gitweb - when 'scan-tree' is later specified, only the projects listed in the projectlist file will be added. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jason A. Donenfeld Jason@zx2c4.com
Thu, 29 Jul 2010 17:52:29 +0200
html: fix strcpy bug in convert_query_hexchar The source and destination strings in strcpy() may not overlap. Instead, use memmove(), which allows overlap. This fixes test t0104, where 'url=foo%2bbar/tree' was being parsed improperly. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Fri, 27 Aug 2010 21:02:27 -0400
t0108-patch: add 'tests_done' to end Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Thu, 26 Aug 2010 22:02:03 -0400
ui-snapshot: actually compress zip archives Since cgit linked with git-1.6.0 all zip archives has been uncompressed. This patch fixes the issue by specifying Z_DEFAULT_COMPRESSION. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Wed, 01 Sep 2010 12:13:12 +0000
Add support for "readme" option The value of this option is used as the default value for repo.readme. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 21 Aug 2010 15:08:01 +0200
Add support for 'section-from-path' option This option can be used to autogenerate section names during scan-path processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 21 Aug 2010 15:44:09 +0200
prefer html_raw() to write() To make the code more consistent, and to not rely on the implementation of html(), always use html_raw(...) instead of write(htmlfd, ...). Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sat, 04 Sep 2010 14:18:16 -0400
ui-repolist: fix redefinition of _XOPEN_SOURCE Previously, ui-repolist.c set _GNU_SOURCE and then included a standard library before including <git-compat-util.h>. This was a problem, because <git-compat-util.h> redefined _XOPEN_SOURCE, which is set automatically by glibc when _GNU_SOURCE is set. However, <git-compat-util.h> already sets _GNU_SOURCE and includes both <string.h> and <time.h>, so there is no need to define _GNU_SOURCE or include either header within ui-repolist.c. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sat, 04 Sep 2010 11:49:30 -0400
fix errors in printf-style format strings There were many places where the arguments to a printf-like function did not match the format string. Mostly, these were a missing 'l' flag, but there were three exceptions: - In ui-stats.c, a size_t argument must be printed. C99 has the "%zu" flag for this purpose, but not all compilers support this. Therefore, we mimic what git does - use a NO_C99_FORMAT Makefile variable. - In ui-stats.c, cgit_print_error() was called with a pointer instead of a character. - In ui-log.c, the "columns" argument was never used. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sat, 04 Sep 2010 11:30:18 -0400
use __attribute__ to catch printf format mistakes Use "__attribute__((format (printf,N,M)))", as is done in git, do catch mistakes in printf-style format strings. Signed-off-by: Mark Lodato <lodatom@gmail.com>
Mark Lodato lodatom@gmail.com
Sat, 04 Sep 2010 11:09:57 -0400
RSS items should always use UTC times The format uses a 'Z' suffix, which indicates no TZ offset. Thus we should not respect the local-time config setting here. Signed-off-by: Aaron Griffin <agriffin@datalogics.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Aaron Griffin agriffin@datalogics.com
Wed, 15 Sep 2010 10:16:33 -0500
CGIT 0.8.3.4 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 27 Sep 2010 08:00:47 +0200
Use GIT-1.7.3 This fixes http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-2542. Noticed-by: Silvio Cesare <silvio.cesare@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Mon, 27 Sep 2010 07:58:01 +0200
Use absolute path for scanned repo readme repo.readme is transformed to an absolute path when read from the config, so add_repo needs to add "README.html" with the repository path too. Signed-off-by: Dean Scarff <dos@scarff.id.au> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Dean Scarff dos@scarff.id.au
Thu, 26 Aug 2010 15:01:20 +0800
Use example.com in documentation, per RFC 2606 Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Mon, 06 Sep 2010 09:31:26 -0400
cgit.css: Add syntax highlighting entries Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Mon, 06 Sep 2010 09:31:25 -0400
Install filter scripts The syntax-highlighting.sh script is quite useful without any changes. Installing it by default makes it easier to use and package. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Mon, 06 Sep 2010 09:31:24 -0400
Add Makefile targets to install/uninstall docs Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Mon, 06 Sep 2010 09:31:23 -0400
Generalize doc generation This borrows from the git Documentation/Makefile. The goal is to make it easier to add new man pages and other documentation as well as to prevent make from re-generating the documentation needlessly. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Todd Zullinger tmz@pobox.com
Mon, 06 Sep 2010 09:31:22 -0400
html.c: use '+' to escape spaces in urls Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 09 Nov 2010 18:15:21 +0100
ui-log.c: improve handling of range-search argument Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 09 Nov 2010 20:53:36 +0100
Add vector utility functions Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Tue, 09 Nov 2010 19:57:18 +0100
ui-log: Move 'Age' column when commit graph is present When the commit graph is present, we prefer to draw it along the left edge, and moving the 'Age' column to the right of the 'Author' column, like in gitk. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:53 +0100
ui-log: Line-wrap long commit subjects when showmsg is enabled When showmsg is disabled ui-log truncates long commit subjects. This is good. However, the same is not desirable when showmsg is enabled, since you then end up with a truncated commit subject followed by the rest of the commit message below. Instead, when showmsg is enabled (and we're using all this space to display the entire commit message, anyway), line-wrap the commit subject instead of truncating it. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:52 +0100
ui-log: Colorize commit graph Use the existing coloring logic in Git's graph code to color the lines between commits in the commit graph. Whereas Git normally uses ANSI color escapes to produce colors, we here use graph_set_column_colors() to replace those with HTML color escapes, that embed the graph lines in <span> tags that apply the desired color using CSS. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:51 +0100
ui-log: Implement support for commit graphs Teach CGit to print an ASCII art commit graph to the left of the commit message, similar to 'git log --graph'. The graph adds extra lines (table rows) to the log when needed to add/remove/shuffle edges in the graph. When 'showmsg' is enabled, the graph is automatically padded to account for the extra lines added by the commit message/notes. This feature is controlled by a new config variable: "enable-commit-graph" (disabled by default), and individual repos can control it by setting "repo.enable-commit-graph". Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:50 +0100
ui-log: Change display of full commit messages (and notes) When showmsg is enabled, ui-log (in addition to the table row containing the details of the current commit) adds a second table row containing the remainder of the commit message, and yet another table row containing the commit notes (if any). The vertical margins between commit subject, commit message and commit notes are controlled by CSS. In preparation for the commit graph (which will be printed to the left of the commit message/notes) we need to eliminate these vertical margins (as they would produce ugly gaps in the commit graph) and instead achieve them by adding newlines to the commit message/notes. Furthermore, we can no longer print the "Notes:" header in the "Age" column, since the graph will be drawn between the "Age" column and the "Commit message" column. This patch therefore prepares the commit message and commit notes in a single buffer (properly formatting the notes using the NOTES_SHOW_HEADER and NOTES_INDENT flags to format_note()), and then prints the entire buffer into a single table row. Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 18:39:49 +0100
scan_path(): Do not recurse into hidden directories by default Paths that start with a period ('.') are considered hidden in the Unix world. scan_path() should arguably not recurse into these directories by default. This patch makes it so, and introduces the "scan-hidden-path" config variable for overriding the new default and revert to the old behaviour (scanning _all_ directories, including hidden .directories). Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <larsh@prediktor.no>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 20:41:00 +0100
scan_path(): Improve handling of inaccessible directories When scanning a tree containing inaccessible directories (e.g. '.ssh' directories in users' homedirs, or repos with explicitly restricted access), scan_path() currently causes three lines of "Permissions denied" errors to be printed to the CGI error log per inaccessible directory: Error checking path /home/foo/.ssh: Permission denied (13) Error checking path /home/foo/.ssh/.git: Permission denied (13) Error opening directory /home/foo/.ssh: Permission denied (13) This is a side-effect of calling is_git_dir(path) and is_git_dir(fmt("%s/.git", path) _before_ we try to opendir(path). By placing the opendir(path) before the two is_git_dir() calls, we reduce the noise to a single line per inaccessible directory: Error opening directory /home/foo/.ssh: Permission denied (13) Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <larsh@prediktor.no>
Johan Herland johan@herland.net
Mon, 15 Nov 2010 20:40:43 +0100
Use transparent background for the cgit logo Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Thu, 23 Dec 2010 12:47:56 +0100
ssdiff: anchors for ssdiff Emit anchors to the respective revisions in side-by-side diff view Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Thu, 23 Dec 2010 12:47:55 +0100
implement repo.logo and repo.logo-link Allow for per repo logo and logo-link; Use global logo and logo-link per default. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Thu, 23 Dec 2010 12:47:54 +0100
CGIT 0.8.3.5 Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 05 Mar 2011 13:52:39 +0100
Avoid trailing slash in virtual-root When setting virtual-root from cgitrc, care is taken to avoid trailing slashes. But when no virtual-root setting is specified, SCRIPT_FILE from the web server is used without similar checks. This patch fixes the inconsistency, which could lead to double-slashes in generated links. Noticed-by: Wouter Van Hemel <wouter@duodecim.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lars Hjemli hjemli@gmail.com
Sat, 05 Mar 2011 13:47:04 +0100
do not infloop on a query ending in %XY, for invalid hex X or Y When a query ends in say %gg, (or any invalid hex) e.g., http://git.gnome.org/browse/gdlmm/commit/?id=%gg convert_query_hexchar calls memmove(txt, txt+3, 0), and then returns txt-1, so the loop in http_parse_querystring never terminates. The solution is to make the memmove also copy the trailing NUL. * html.c (convert_query_hexchar): Fix off-by-one error. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Jim Meyering meyering@redhat.com
Mon, 28 Feb 2011 12:18:57 +0100
ui-shared: silence warning warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘size_t’ Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Thu, 23 Dec 2010 12:47:53 +0100
Makefile: Make `make get-git` work under OpenBSD. OpenBSD tar(1) defaults to read from "/dev/rst0" when not specifying an filename and thus fails to extract the Git sourcecode when not passing stdin as input file descriptor explicitly. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer info@cryptocrack.de
Wed, 19 Jan 2011 14:05:48 +0100