Website Summary Files Commits Branches @commit @diff @stats
Commit message (Collapse)AuthorAgeLinesSHA
* ui-shared: Remove needless cgit_get_cmd() call, and refactor hc() accordingly
 Johan Herland
2010-06-19-19/+120e34c6d
| | | | | | | | | | | | | 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>
* ui-shared: Improve const-ness in API
 Johan Herland
2010-06-19-65/+80c3f23d4
| | | | | | | 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>
* Remove unused variable in shared.c
 Johan Herland
2010-06-19-1/+0026980c
| | | | | Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Fix small typo in cgitrc example
 Johan Herland
2010-06-19-1/+19ce5d05
| | | | | Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* ui-tree: add link to plain view for blobs in tree listing
 Lars Hjemli
2010-02-28-0/+2ff3a3b4
| | | | | Suggested-by: Robert Weidlich <mail@robertweidlich.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Use GIT-1.7.0
 Lars Hjemli
2010-02-27-1/+1c151ce6
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'html-updates' of git://github.com/MarkLodato/cgit
 Lars Hjemli
2010-02-27-30/+58067c180
|\
| * html: properly percent-escape URLs
 Mark Lodato
2010-02-09-4/+32a2c6355
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * html: make all strings 'const char *'
 Mark Lodato
2010-02-08-26/+268aab27f
| | | | | | | | | | | | | | | | 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>
* | Merge branch 'stable'
 Lars Hjemli
2010-02-27-3/+371d3ca7
|\ \ | |/ |/|
| * Clear the whole context
 Daniel Milde
2010-02-27-1/+19bd3a7b
| | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * ui-shared.c: fix segfault when repo is empty
 Florian Pritz
2010-02-27-2/+28d94607
| | | | | | | | | | | | | | | | | | 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>
* | Merge branch 'stable'
 Lars Hjemli
2009-12-12-4/+4547a64f
|\|
| * CGIT 0.8.3.1
 Lars Hjemli
2009-12-12-1/+1c86e206
| | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * Fix segfault on ppc when browsing tree
 Martins Polakovs
2009-12-12-3/+324538b0
| |
* | Add .tar.xz-snapshot support
 Andreas Wiese
2009-12-08-4/+100642435
| | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Merge branch 'lh/remote-branches'
 Lars Hjemli
2009-12-08-0/+184e75d7c
|\ \
| * | Add support for remote branches
 Lars Hjemli
2009-11-07-0/+1841934a3
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'ro/ssdiff'
 Lars Hjemli
2009-12-08-25/+586f4f6210
|\ \ \
| * | | In side-by-side diff, add support for marking individual characters.
 Ragnar Ouchterlony
2009-11-07-25/+130735e15e
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Fixed side-by-side diff bugs related to binary diff and more.
 Ragnar Ouchterlony
2009-09-16-6/+164a198e4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Polishing of how the side-by-side diff looks.
 Ragnar Ouchterlony
2009-09-16-30/+96207cc34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Add possibility to switch between unidiff and side-by-side-diff.
 Ragnar Ouchterlony
2009-09-16-16/+73c358aa3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | First version of side-by-side diff.
 Ragnar Ouchterlony
2009-09-16-2/+32540e174d
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Merge branch 'master' of http://op-co.de/cgit
 Lars Hjemli
2009-12-08-17/+3157bb4fd
|\ \ \ \
| * | | | "max-blob-size" config var to limit generated HTML size
 Georg Lukas
2009-11-28-0/+14ef07ccc
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | cgit.css: highlight directories in tree
 Georg Lukas
2009-11-28-0/+5545b5a5
| | | | |
| * | | | syntax highlighting for all formats supported by "highlight"
 Georg Lukas
2009-11-19-17/+1256522eb
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | Merge branch 'stable'
 Lars Hjemli
2009-12-08-2/+25c34d96
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Don't crash when a repo-specific readme file is used
 Sami Kyöstilä
2009-12-08-2/+2f2bf0a0
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Merge branch 'stable'
 Lars Hjemli
2009-11-07-3/+5e633ccf
|\| |
| * | shared.c: return original errno
 Lars Hjemli
2009-11-07-3/+521f67e7
| | | | | | | | | | | | | | | Noticed-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Add NO_OPENSSL option
 Mikhail Gusarov
2009-11-07-3/+1259310ab
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge branch 'stable'
 Lars Hjemli
2009-11-07-3/+84b1fee0
|\| |
| * | Close fd on error in readfile()
 Rys Sommefeldt
2009-11-07-2/+78cfe489
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| * | Nov is the correct abbreviation
 Danijel Tašov
2009-11-07-1/+1e34a3b5
| | |
* | | ui-shared.c: prettify download links when generated from tag page
 Lars Hjemli
2009-10-16-2/+71303272
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | ui-tag: make output more similar to commit view
 Lars Hjemli
2009-10-06-6/+6322a4bc
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | ui-tag: add snapshot links
 Alexey Nezhdanov
2009-10-06-0/+128cdccac
| | | | | | | | | | | | | | | Signed-off-by: Alexey Nezhdanov <snakeru@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | | Skip leading "/" in url querystring value
 Stefan Bühler
2009-10-06-0/+2121898e
|/ / | | | | | | | | | | | | | | 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>
* | Fix repolist search links with virtual root
 Geoff Johnstone
2009-09-20-1/+29735835
| | | | | | | | | | Signed-off-by: Geoff Johnstone <geoff.johnstone@googlemail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | cgitrc.5.txt: Change repo.group to section in example config.
 Loui Chang
2009-09-14-4/+48071e18
| | | | | | | | | | Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | cgitrc.5.txt: Add mansource and manmanual.
 Loui Chang
2009-09-14-0/+3676d17b
|/ | | | | | | This prevents FIXMEs from appearing. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* CGIT 0.8.3
 Lars Hjemli
2009-09-13-1/+127479ac
| | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* Merge branch 'stable'
 Lars Hjemli
2009-09-13-1/+133998c5
|\
| * CGIT 0.8.2.2
 Lars Hjemli
2009-09-13-1/+1f92ca06
| | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>
* | Merge branch 'lh/repo-scan'
 Lars Hjemli
2009-09-13-80/+32992f6940
|\ \
| * | cgit.c: respect repo-local 'snapshots' option for --scan-path
 Lars Hjemli
2009-08-24-0/+10ee55484
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | cgit.c: only print first line of repo.desc in print_repo()
 Lars Hjemli
2009-08-24-2/+14588fb8e
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Add and use cgit_find_stats_periodname() in print_repo()
 Lars Hjemli
2009-08-24-0/+12b47b7bd
| | | | | | | | | | | | Signed-off-by: Lars Hjemli <hjemli@gmail.com>