aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.c
diff options
context:
space:
mode:
authorJohn Keeping2014-10-05 10:59:03 +0100
committerLukas Fleischer2014-12-13 12:38:42 +0100
commit03f537f1a134c8578ae4c16055596539fbbcc220 (patch)
tree4c16fece25d645a7e52565d82833528d3c22d240 /ui-diff.c
parenteeddb5bc0905d4728001a111a9b1eb60ecccf9bd (diff)
downloadcgit-03f537f1a134c8578ae4c16055596539fbbcc220.tar.gz
cgit-03f537f1a134c8578ae4c16055596539fbbcc220.tar.bz2
cgit-03f537f1a134c8578ae4c16055596539fbbcc220.zip
ui-shared: remove toggle_ssdiff arg to cgit_diff_link()
This argument is never used with a value other than zero, so remove it and simplify the code. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-diff.c')
-rw-r--r--ui-diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-diff.c b/ui-diff.c
index 71273aa..49bd748 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -97,7 +97,7 @@ static void print_fileinfo(struct fileinfo *info)
97 } 97 }
98 htmlf("</td><td class='%s'>", class); 98 htmlf("</td><td class='%s'>", class);
99 cgit_diff_link(info->new_path, NULL, NULL, ctx.qry.head, ctx.qry.sha1, 99 cgit_diff_link(info->new_path, NULL, NULL, ctx.qry.head, ctx.qry.sha1,
100 ctx.qry.sha2, info->new_path, 0); 100 ctx.qry.sha2, info->new_path);
101 if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED) { 101 if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED) {
102 htmlf(" (%s from ", 102 htmlf(" (%s from ",
103 info->status == DIFF_STATUS_COPIED ? "copied" : "renamed"); 103 info->status == DIFF_STATUS_COPIED ? "copied" : "renamed");
@@ -175,7 +175,7 @@ static void cgit_print_diffstat(const unsigned char *old_sha1,
175 175
176 html("<div class='diffstat-header'>"); 176 html("<div class='diffstat-header'>");
177 cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.sha1, 177 cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.sha1,
178 ctx.qry.sha2, NULL, 0); 178 ctx.qry.sha2, NULL);
179 if (prefix) { 179 if (prefix) {
180 html(" (limited to '"); 180 html(" (limited to '");
181 html_txt(prefix); 181 html_txt(prefix);