From 1d4aaff696ee1b9085dda0f0f3d84d9d20d96db0 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 22 Jul 2007 21:57:48 +0000 Subject: 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 --- (limited to 'ui-commit.c') diff --git a/ui-commit.c b/ui-commit.c index 2679b59..50e9e11 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -139,7 +139,6 @@ void cgit_print_commit(char *hex) struct commitinfo *info; struct commit_list *p; unsigned char sha1[20]; - char *filename; char *tmp; int i; @@ -196,11 +195,9 @@ void cgit_print_commit(char *hex) html(")"); } if (cgit_repo->snapshots) { - htmlf("download%s", filename); + html("download"); + cgit_print_snapshot_links(cgit_query_repo,hex,cgit_repo->snapshots); + html(""); } html("\n"); html("
"); -- cgit v0.9.0.2