summaryrefslogtreecommitdiffstatshomepage
Commit message (Expand)AuthorAge
...
* | Use GIT-1.5.4.rc4Lars Hjemli2008-01-21
* | Merge branch 'stable'Lars Hjemli2008-01-13
|\|
| * CGIT 0.7.2v0.7.2Lars Hjemli2008-01-10
| * Use GIT-1.5.3.8Lars Hjemli2008-01-10
| * Compare string lengths when parsing the snapshot maskLars Hjemli2007-12-03
| * Default repo description to "[no description]"Evan Martin2007-12-03
* | Check for NULL-subject in patch viewLars Hjemli2008-01-10
* | Handle missing default branch and error out on invalid branch namesLars Hjemli2008-01-04
* | Add plain patch viewLars Hjemli2007-12-11
* | Add support for automatic and custom clone urlsLars Hjemli2007-12-03
* | Merge branch 'stable'Lars Hjemli2007-12-02
|\|
| * Handle missing timestamp in commit/tag objectsLars Hjemli2007-12-02
| * Set commit date on snapshot contentsLars Hjemli2007-11-11
* | Add cell-spacing in htmlLars Hjemli2007-11-16
* | Use tables for page layoutLars Hjemli2007-11-16
* | Gimp my logoLars Hjemli2007-11-16
* | Add support for "robots" meta-tagLars Hjemli2007-11-11
* | Generate valid html for "downloads" menu headerLars Hjemli2007-11-11
* | Merge branch 'lh/testsuite'Lars Hjemli2007-11-11
|\ \
| * | Set commit date on snapshot contentsLars Hjemli2007-11-11
| * | Fix html error detected by test-suiteLars Hjemli2007-11-11
| * | Create initial testsuiteLars Hjemli2007-11-11
|/ /
* | Merge branch 'stable'Lars Hjemli2007-11-09
|\|
| * CGIT 0.7.1v0.7.1Lars Hjemli2007-11-09
| * Makefile install: include cgit.png, do not empty cacheLars Hjemli2007-11-09
* | Minor css tweaksLars Hjemli2007-11-09
* | Merge branch 'stable'Lars Hjemli2007-11-08
|\|
| * Support "/" as virtual-rootLars Hjemli2007-11-08
* | Makefile: link with libiconv if NEEDS_LIBICONV is definedLars Hjemli2007-11-06
* | Merge branch 'iconv-rebased' of http://x2a.org/pub/git/cgitLars Hjemli2007-11-06
|\ \
| * | Use utf8::reencode_string from gitLars Hjemli2007-11-05
| * | Convert subject and message with iconv_msg.Jonathan Bastien-Filiatrault2007-11-05
| * | Add iconv_msg function.Jonathan Bastien-Filiatrault2007-11-05
| * | Set msg_encoding according to the header.Jonathan Bastien-Filiatrault2007-11-05
| * | Add commit->msg_encoding, allocate msg dynamicly.Jonathan Bastien-Filiatrault2007-11-05
| |/
* / Show lines changed as -n/+m in shortlogsLars Hjemli2007-11-06
|/
* Don't show the the branch selector button if javascript is enabledLars Hjemli2007-11-03
* Do not require javascript-enabled clientsLars Hjemli2007-11-03
* CGIT 0.7v0.7Lars Hjemli2007-11-03
* Use GIT-1.5.3.5Lars Hjemli2007-11-03
* Don't include current SHA1 in 'log' menu-itemLars Hjemli2007-11-03
* Don't include current path in menu linksLars Hjemli2007-11-03
* Fix search form action/hidden fieldsLars Hjemli2007-11-03
* Add search parameters to cgit_log_linkLars Hjemli2007-11-03
* Fix typo in cssShunichi Fuji2007-11-03
* Change the cgit layoutLars Hjemli2007-10-30
* Add config param 'index-info'Lars Hjemli2007-10-30
* Teach cgit_object_link() about tag objectsLars Hjemli2007-10-28
* Make print_branch() handle refs not pointing at commitsLars Hjemli2007-10-28
* Teach log search about --grep, --author and --committerLars Hjemli2007-10-28
ass="w"> free(abbrev2); if (mode1 != 0 && mode2 != 0) { htmlf(" %.6o", mode1); if (mode2 != mode1) htmlf("..%.6o", mode2); } htmlf("\n--- a/%s\n", path1); htmlf("+++ b/%s\n", path2); } } static void filepair_cb(struct diff_filepair *pair) { unsigned long old_size = 0; unsigned long new_size = 0; int binary = 0; header(pair->one->sha1, pair->one->path, pair->one->mode, pair->two->sha1, pair->two->path, pair->two->mode); if (S_ISGITLINK(pair->one->mode) || S_ISGITLINK(pair->two->mode)) { if (S_ISGITLINK(pair->one->mode)) print_line(fmt("-Subproject %s", sha1_to_hex(pair->one->sha1)), 52); if (S_ISGITLINK(pair->two->mode)) print_line(fmt("+Subproject %s", sha1_to_hex(pair->two->sha1)), 52); return; } if (cgit_diff_files(pair->one->sha1, pair->two->sha1, &old_size, &new_size, &binary, print_line)) html("Error running diff"); if (binary) html("Binary files differ\n"); } void cgit_print_patch(char *hex) { struct commit *commit; struct commitinfo *info; unsigned char sha1[20], old_sha1[20]; char *patchname; if (!hex) hex = ctx.qry.head; if (get_sha1(hex, sha1)) { cgit_print_error(fmt("Bad object id: %s", hex)); return; } commit = lookup_commit_reference(sha1); if (!commit) { cgit_print_error(fmt("Bad commit reference: %s", hex)); return; } info = cgit_parse_commit(commit); if (commit->parents && commit->parents->item) hashcpy(old_sha1, commit->parents->item->object.sha1); else hashclr(old_sha1); patchname = fmt("%s.patch", sha1_to_hex(sha1)); ctx.page.mimetype = "text/plain"; ctx.page.filename = patchname; cgit_print_http_headers(&ctx); htmlf("From %s Mon Sep 17 00:00:00 2001\n", sha1_to_hex(sha1)); htmlf("From: %s", info->author); if (!ctx.cfg.noplainemail) { htmlf(" %s", info->author_email); } html("\n"); html("Date: "); cgit_print_date(info->author_date, "%a, %d %b %Y %H:%M:%S %z%n", ctx.cfg.local_time); htmlf("Subject: %s\n\n", info->subject); if (info->msg && *info->msg) { htmlf("%s", info->msg); if (info->msg[strlen(info->msg) - 1] != '\n') html("\n"); } html("---\n"); cgit_diff_tree(old_sha1, sha1, filepair_cb, NULL); html("--\n"); htmlf("cgit %s\n", CGIT_VERSION); cgit_free_commitinfo(info); }