X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e19683bedebc74593cb4c4518e47a334a5478e1e..0274b57d55a12ed38259757dbfae96b79cfa2e0b:/ui-diff.c
diff --git a/ui-diff.c b/ui-diff.c
index 12e78b1..878496d 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -16,7 +16,6 @@ unsigned char new_rev_sha1[20];
static int files, slots;
static int total_adds, total_rems, max_changes;
static int lines_added, lines_removed;
-static char *curr_rev;
static struct fileinfo {
char status;
@@ -80,8 +79,8 @@ static void print_fileinfo(struct fileinfo *info)
html("]");
}
htmlf("
", class);
- cgit_diff_link(info->new_path, NULL, NULL, ctx.qry.head, curr_rev,
- NULL, info->new_path);
+ cgit_diff_link(info->new_path, NULL, NULL, ctx.qry.head, ctx.qry.sha1,
+ ctx.qry.sha2, info->new_path);
if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED)
htmlf(" (%s from %s)",
info->status == DIFF_STATUS_COPIED ? "copied" : "renamed",
@@ -142,7 +141,10 @@ void cgit_print_diffstat(const unsigned char *old_sha1,
{
int i;
- html("");
+ html("");
html("");
max_changes = 0;
cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL);
|