-rw-r--r-- | ui-diff.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -18,3 +18,2 @@ static int total_adds, total_rems, max_changes; static int lines_added, lines_removed; -static char *curr_rev; @@ -82,4 +81,4 @@ static void print_fileinfo(struct fileinfo *info) htmlf("</td><td class='%s'>", 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) @@ -147,3 +146,2 @@ void cgit_print_diffstat(const unsigned char *old_sha1, max_changes = 0; - curr_rev = xstrdup(sha1_to_hex(new_sha1)); cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); |