all repos — cgit @ 6d7552bc072599313ef423d69156d824c075572a

a hyperfast web frontend for git written in c

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
commit

6d7552bc072599313ef423d69156d824c075572a

parent

379e80e3a83481d3639c5d312eeddcce57c486b2

6 files changed, 10 insertions(+), 10 deletions(-)

jump to
M MakefileMakefile

@@ -5,7 +5,7 @@ CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH)

CGIT_CONFIG = /etc/cgitrc CACHE_ROOT = /var/cache/cgit SHA1_HEADER = <openssl/sha.h> -GIT_VER = 1.7.0 +GIT_VER = 1.7.2.2 GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2 INSTALL = install

@@ -71,7 +71,7 @@ %.o: %.c

$(QUIET_CC)$(CC) -o $*.o -c $(CFLAGS) $< -EXTLIBS = git/libgit.a git/xdiff/lib.a -lz +EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lpthread OBJECTS = OBJECTS += cache.o OBJECTS += cgit.o
M cgit.ccgit.c

@@ -22,7 +22,7 @@ void add_mimetype(const char *name, const char *value)

{ struct string_list_item *item; - item = string_list_insert(xstrdup(name), &ctx.cfg.mimetypes); + item = string_list_insert(&ctx.cfg.mimetypes, xstrdup(name)); item->util = xstrdup(value); }
M ui-commit.cui-commit.c

@@ -36,7 +36,7 @@ return;

} info = cgit_parse_commit(commit); - get_commit_notes(commit, &notes, PAGE_ENCODING, 0); + format_note(NULL, sha1, &notes, PAGE_ENCODING, 0); load_ref_decorations(DECORATE_FULL_REFS);
M ui-log.cui-log.c

@@ -112,7 +112,7 @@ }

html("</td></tr>\n"); if (ctx.qry.showmsg) { struct strbuf notes = STRBUF_INIT; - get_commit_notes(commit, &notes, PAGE_ENCODING, 0); + format_note(NULL, commit->object.sha1, &notes, PAGE_ENCODING, 0); if (ctx.repo->enable_log_filecount) { cols++;
M ui-plain.cui-plain.c

@@ -34,7 +34,7 @@ }

ctx.page.mimetype = NULL; ext = strrchr(path, '.'); if (ext && *(++ext)) { - mime = string_list_lookup(ext, &ctx.cfg.mimetypes); + mime = string_list_lookup(&ctx.cfg.mimetypes, ext); if (mime) ctx.page.mimetype = (char *)mime->util; }
M ui-stats.cui-stats.c

@@ -175,7 +175,7 @@ time_t t;

info = cgit_parse_commit(commit); tmp = xstrdup(info->author); - author = string_list_insert(tmp, authors); + author = string_list_insert(authors, tmp); if (!author->util) author->util = xcalloc(1, sizeof(struct authorstat)); else

@@ -186,7 +186,7 @@ t = info->committer_date;

date = gmtime(&t); period->trunc(date); tmp = xstrdup(period->pretty(date)); - item = string_list_insert(tmp, items); + item = string_list_insert(items, tmp); if (item->util) free(tmp); item->util++;

@@ -279,7 +279,7 @@ for (i = from; i <= to; i++) {

author = &authors->items[i]; authorstat = author->util; items = &authorstat->list; - date = string_list_lookup(tmp, items); + date = string_list_lookup(items, tmp); if (date) subtotal += (size_t)date->util; }

@@ -331,7 +331,7 @@ period->dec(tm);

for (j = 0; j < period->count; j++) { tmp = period->pretty(tm); period->inc(tm); - date = string_list_lookup(tmp, items); + date = string_list_lookup(items, tmp); if (!date) html("<td>0</td>"); else {